Too many view columns during parallel editing
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
Medium
|
Richard Mansfield |
Bug Description
We have a Mahara 1.2.5 on a Linux server with MySQL Database.
During a Mahara Tutorial 25 people where editing a group view in parallel using the buttons add and remove columns.
After a while, displaying the view ended in a system error. A look in the database revealed that the view had 7 as the number of columns and (null) as its layout. Default layouts are only available up to 5 columns.
The function get_layout() in lib/view.php could therefore not determine a layout anymore.
I believe this is a Mahara bug. There should be some transactional mechanism between the JavaScript and the PHP script that prevents users from creating more than 5 columns in a view.
I just hacked the get_layout function to simply set the number of columns to 5 in case it's bigger than 5, but this is not a permanent solution.
Thanks in advance
Juergen Zimmer
Changed in mahara: | |
status: | New → Fix Committed |
assignee: | nobody → Richard Mansfield (richard-mansfield) |
milestone: | none → 1.4.0 |
Changed in mahara: | |
status: | Fix Committed → Fix Released |
importance: | Undecided → Medium |