In-Portal Issue Tracker - In-Portal CMS
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Type: | Reproducibility: | Date Submitted: | Last Update: |
1047 | [In-Portal CMS] Data Management | bug report | always | 2011-05-04 15:26 | 2011-10-21 12:24 |
|
|||||
Reporter: | alex | Platform: | |||
Assigned To: | erik | OS: | |||
Priority: | normal | OS Version: | |||
Status: | closed | Product Version: | 5.1.2 | ||
Product Build: | Resolution: | won't fix | |||
ETA: | none | Fixed in Version: | 5.2.0 | ||
Reference: | https://groups.google.com/d/topic/in-portal-bugs/uWeBloFOzio/discussion | ||||
Change Log Message: | Moved "regexp" field option processing to kDBItem class | ||||
Estimate Points: | 0 | ||||
|
|||||
Summary: | 0001047: Misplaced field format validation code | ||||
Description: |
In-Portal has ability to validate value in the field using given regular expression (regexp option in field definition). All works fine, unless you need to change field value (not on form, but in code) before validation takes place. To solve that problem I'm proposing to move processing of "regexp" option from kFormatter class into kDBItem class. |
||||
Steps To Reproduce: | |||||
Additional Information: |
This "regexp" option is specified in unit config file, like "core/units/users/users_config.php" in "Fields" array, e.g. 'Fields' => Array ( 'Login' => Array ('type' => 'string', 'formatter' => 'kFormatter', 'regexp' => '/^user.*$/', 'default' => ''), ), This will force all new users to have "user" in front of their login name to be entered before registration could continue. |
||||
Relationships | |||||
Attached Files: | |||||
|
|||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2011-10-21 12:24 | alex | Note Added: 0004085 | |||
2011-10-21 12:24 | alex | Status | needs work => closed | ||
2011-10-21 12:24 | alex | Time Estimate Removed | 1 => | ||
2011-10-21 12:24 | alex | Resolution | open => won't fix | ||
2011-10-21 12:24 | alex | Fixed in Version | => 5.2.0 | ||
2011-10-21 09:09 | Dmitry | Assigned To | => erik | ||
2011-10-21 09:09 | Dmitry | Status | active => needs work | ||
2011-09-26 04:52 | alex | Time Estimate Added | 1 | ||
2011-09-23 20:54 | Dmitry | Target Version | Icebox => 5.2.0 | ||
2011-05-04 15:26 | alex | New Issue | |||
2011-05-04 15:26 | alex | Reference | => https://groups.google.com/d/topic/in-portal-bugs/uWeBloFOzio/discussion | ||
2011-05-04 15:26 | alex | Change Log Message | => Moved "regexp" field option processing to kDBItem class |
Notes | |||||
|
|||||
|
|