custom field not working fine
Brought to you by:
jberanek
i have add extra field to the entry table and same field to the repeat table as well, its type smallint(1) and its becom a checkbox and its Appear in the system
but not working fine
when make new booking and check the box its not entering in database even in edit page.
i tried to change the value manually in database and check the view page and found it working will, but the edit page still not recalling the data from database
using local server windows
AppServ Open Project - 8.4.0 for Windows
Apache/2.4.18
PHP/5.6.22
mysql/5.7.13
Regards
i use the latest version MRBS 1.7.2
I've now fixed this in the mrbs_17_branch. You can patch your MRBS 1.7.2 system by using these versions attached of
edit_entry.php
edit_entry_handler.php
lib/MRBS/Form/Field.php
Last edit: Campbell Morrison 2019-01-12
I have just noticed I had a typo in the paths above: "Firm" instead of "Form". I have now edited it.
i found this error in both pages (new booking, edit booking)
Fatal error: Call to undefined method MRBS\Form\FieldInputCheckbox::setControlChecked() in C:\AppServ\www\mrbs\web\edit_entry.php on line 710
Have you uploaded all three files?
yes i upload it all but was confusing about the directory.
thanks bro
it's working fine now
mate i have faced the same problem with same field smallint(1) "checkbox" in Tables (rooms, users) could you help please
its recall the data in view and edit pages but not inserting to database even in new rows
Now fixed. Here are two new versions of edit_users.php and edit_room_handler.php.
I've discovered there's a major bug that was introduced in the version of edit_users.php above which caused admins to be downgraded to ordinary users when they edit themselves. Here's a version which fixes it.
updated thanks a lot