Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.9.1
-
Fix Version/s: 1.9
-
Component/s: Block: Mrbs
-
Labels:None
-
Environment:I'm using Apache2Triad distribution and Moodle 1.9.1 on a windows 2003 server.
PHP 5.1.2
MYSQL 5.0.18
-
Database:MySQL
-
Affected Branches:MOODLE_19_STABLE
-
Fixed Branches:MOODLE_19_STABLE
Description
In trying to edit rooms in MRBS, I get the following error-
Update room failed: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'computers, room_admin_email='' WHERE id=5' at line 1.
I wanted to add info to the room - examples
Description - Whiteboard/TV
Capacity - 30 Computers
As soon as i hit change, the MYSQL error comes up.
Paul - Thanks for reporting this. The issue was that I had not properly checked the $capacity parameter to ensure that it was an integer. I've added the param check so that if you put in 30 computer it will get changed to 30. The capacity field is defined as an integer and thus was not intended to store a string and that is what was causing the error. Peace - Anthony