The default max number of attachments for forums can be set in the forum plugin settings through "forum_maxattachments". However, announcement forums don't use that setting. They always have their max attachments set to 1 by default. The 1 is the default value of the "maxattachments" column in the DB.
In my opinion the "forum_maxattachments" setting should also apply to announcement forums. Or is there a reason why it doesn't?
See:
https://github.com/moodle/moodle/blob/1c3efe48f885797433397eca56f9a0239b6fe547/mod/forum/db/install.xml#L22
https://github.com/moodle/moodle/blob/1c3efe48f885797433397eca56f9a0239b6fe547/mod/forum/settings.php#L54-L55
- will be (partly) resolved by
-
MDL-78186 Announcements forum should be a forum type
- Open