Skip to content

LegacyForms: Fix TypeError for attachments exceeding upload limit#11335

Open
LeTammo wants to merge 1 commit intoILIAS-eLearning:release_10from
LeTammo:fix/10/TypeErrorWithLargeForumPostAttachments
Open

LegacyForms: Fix TypeError for attachments exceeding upload limit#11335
LeTammo wants to merge 1 commit intoILIAS-eLearning:release_10from
LeTammo:fix/10/TypeErrorWithLargeForumPostAttachments

Conversation

@LeTammo
Copy link
Copy Markdown
Contributor

@LeTammo LeTammo commented Mar 25, 2026

This MR resolves an issue described in this mantis report.

This fix prevents the TypeError from occurring when uploading attachments that exceed the file size limit if an ilTextAreaInputGUI element is contained in the same legacy property form.
It is fixed by adding safeguard checks to ensure that in ilTextAreaInputGUI the getInput() function only attempts to purify the PostVar if it is not null.

@mjansenDatabay mjansenDatabay added bugfix php Pull requests that update Php code Looking for Shepherd labels Mar 25, 2026
@LeTammo LeTammo changed the title Forum: Fix TypeError for forum post attachments exceeding upload limit LegacyForms: Fix TypeError for forum post attachments exceeding upload limit Mar 25, 2026
@LeTammo LeTammo changed the title LegacyForms: Fix TypeError for forum post attachments exceeding upload limit LegacyForms: Fix TypeError for attachments exceeding upload limit Mar 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix Looking for Shepherd php Pull requests that update Php code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants