Too many view columns during parallel editing

Bug #645040 reported by Jürgen Zimmer
6
This bug affects 1 person
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

Tags: columns view
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
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.