Adding an empty string as a comment generates a warning
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
Medium
|
Ghada El-Zoghbi | ||
18.04 |
Fix Released
|
Medium
|
Unassigned | ||
18.10 |
Fix Released
|
Medium
|
Unassigned | ||
19.04 |
Fix Released
|
Medium
|
Unassigned | ||
19.10 |
Fix Released
|
Medium
|
Ghada El-Zoghbi |
Bug Description
Mahara: 19.04.0
OS: Linux 16.04
DB: Postgres
Browser: FF
When entering a comment which does not have any text but includes an uploaded file, the following warning is generated:
[WAR] bd (artefact/
Call stack (most recent first):
log_
error(2, "DOMDocument:
DOMDocument
ArtefactTyp
add_
Pieform-
Pieform:
pieform(
To reproduce:
* Create a view with a comment section
* View the page and enter a comment
* Upload a file for the comment and leave the content empty.
* Save
* Refresh page
* The above warning appears
Expected: no warning should appear.
Changed in mahara: | |
assignee: | nobody → Ghada El-Zoghbi (ghada-z) |
Patch for "master" branch: https:/ /reviews. mahara. org/10079