-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
3.4.5, 3.5.2, 3.6
-
MOODLE_34_STABLE, MOODLE_35_STABLE, MOODLE_36_STABLE
On the Comments tab add/edit functionality, clicking Save, Upload & delete, Preview, and Cancel with "No contents/empty" text area gives an error message.
This issue can be replicated reliably using (3.6dev+ (Build: 20181031). Please see steps below:
1. Create a course.
2. Turn editing on.
3. Add a Wiki activity and create your first page and save (creole or nwiki format).
4. Go to the Wiki activity, and click the "Comments" tab.
5. Click the "Add comment" link.
6. Do not type anything in the text-area/leave it blank.
7. Click "Upload & Delete".
Result: You will see the "Error writing to database". Stacktrace in attached screenshot.
8. Repeat steps 5 and 6. Click "Preview".
Result: You will see the "Error writing to database". Stacktrace in attached screenshot.
9. Repeat steps 5 and 6. Click "Cancel".
Result: You will see the "Error writing to database". Stacktrace in attached screenshot.
10. Repeat steps 5 and 6. Click "Save".
Result: You will see the "Error writing to database". Stacktrace in attached screenshot.
- duplicates
-
MDL-27605 Error page comes on submitting wiki comments without mandatory fields
- Closed
- has a non-specific relationship to
-
MDL-63845 mod_wiki: Attaching a file to a Comment is not displayed nor saved
- Open
- will be (partly) resolved by
-
MDL-63846 mod_wiki: Form gets submitted and saved on Comments when clicking Upload & delete, Preview, or Cancel using Creole or NWiki format
- Open