mandatory fields query
Rowland Carson <rowlandcarson <at> gmail.com>
2013-05-19 00:31:05 GMT
I'd like to ensure that my users supply both a name and a description when creating bookings. Some don't,
making report compilation difficult when one or other is missing.
I added the line:
$is_mandatory_field['entry.description'] = true;
to config.inc.php, but the effect was that no matter what data I key into that field in a new booking, when I
click "save", I get a new page with the following message:
Invalid booking
You have not supplied a value for the mandatory field "description"
I find similar behaviour if I add the line:
$is_mandatory_field['entry.name'] = true;
Is there some different method that is needed to make any of the default fields mandatory? I already have the entry:
$is_mandatory_field['entry.contact_name'] = true;
for a custom field and it appears to work fine, leaving me on the booking creation page ready to fill in the
missing data if I hit "Save" before anything is entered in that field.
I've only tried this on my localhost so far, but obviously if I can get something working, will want to deploy
it on the live system.
My environments:
(localhost, test/development system)
Meeting Room Booking System: MRBS 1.4.6
Database: MySQL 5.0.45
PHP: 5.3.15
(live host)
Meeting Room Booking System: MRBS 1.4.6
Database: MySQL 5.5.30-cll
PHP: 5.3.21
Any suggestions welcome.
Rowland
| Rowland Carson ... that's Rowland with a 'w' ...
| <rowlandcarson <at> gmail.com> http://www.rowlandcarson.org.uk
| Skype, Twitter: rowland_carson Facebook: Rowland Carson
| pictures: http://picasaweb.google.com/rowlandcarson
------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
mrbs-general mailing list
mrbs-general <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mrbs-general
Want to unsubscribe: mailto:mrbs-general-request <at> lists.sourceforge.net?subject=unsubscribe