Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.5.6

Request #5965 Turn off automatic setting of qf_rules
Submitted: 2005-11-15 10:30 UTC
From: arne dot bippes at brandao dot de Assigned: wiesemann
Status: Closed Package: DB_Table
PHP Version: Irrelevant OS: irrelevant
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 31 + 24 = ?

 
 [2005-11-15 10:30 UTC] arne dot bippes at brandao dot de
Description: ------------ QuickForm.php sets certain rules depending on some column-settings (size,type,required) This is quite comfortable but not always wanted. Please provide a flag (which is turned on by default) to turn off this behaviour. e.g. qf_rules_auto or qf_set_rules or qf_no_rules or whatever. Just for your understanding: i need this behaviour because i have a table with a foreign id pointing to a table containing file-meta-information. The quickform-typ is file (which will be saved in the foreign table). Therefore i want to upload a file but db_table checks against 'numeric'-Rule ... Test script: --------------- in Quickform.php this would just be enough: if ( ! isset($col['qf_set_rules']) || $col['qf_set_rules'] === true) { ... set the rules ... } Expected result: ---------------- $col['qf_rules']['numeric'] = null; $col['qf_rules']['maxlength'] = null; $col['qf_rules']['required'] = null;

Comments

 [2005-11-15 11:39 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2005-11-15 21:07 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2006-11-03 22:39 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!