Open jberanek opened 5 years ago
It looks like you probably haven't removed any of the changes you made, either to the code or to the rooms table. (By the way, when you add a custom field to the rooms table you shouldn't need to change the code. MRBS will recognise it automatically).
Original comment by: campbell-m
No, I have removed all the changed made to add the field. Initially, I have just added a new field to room table but mrbs does not recognise it, so I have to edit the admin.php & add.php. see this support request: https://sourceforge.net/p/mrbs/support-requests/1711/
Original comment by: *anonymous
No, I have removed all the changed made to add the field.
The preparation_blocker column must still be there in the database because otherwise you wouldn't be getting the SQL error:
SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'preparation_blocker' cannot be null
Similarly the code must still be there to handle the column because otherwise you would not have:
INSERT INTO quickfor_room (room_name, sort_key, area_id, description, capacity, room_admin_email,preparation_blocker) VALUES (?, ?, ?, ?, ?, ?, ?)
and also preparation_blocker is there in your POST data.
Initially, I have just added a new field to room table but mrbs does not recognise it, so I have to edit the admin.php & add.php. see this support request
OK, I understand. MRBS will recognise it when you edit the room, but not when you first add it.
Original comment by: campbell-m
Hi, I have created a new field "preparation_locker" in ADD ROOM form. Then I have edited admin.php and add.php so that it appears in the ADD ROOM FORM.
Now I want to delete this field so I followed back the way I have created this field starting with phpmy admin.
Now after this field is removed, when I try to add a new room, it shows error: database is missing.
This is the error log:
Reported by: *anonymous
Original Ticket: mrbs/support-requests/1748