In-Portal Issue Tracker - In-Portal CMS
Viewing Issue Advanced Details
1381 [In-Portal CMS] Database task always 2012-08-20 10:23 2012-08-20 10:25
alex  
alex  
normal  
resolved 5.2.0  
fixed  
 
none 5.2.1-B1  
https://groups.google.com/d/topic/in-portal-dev/8SfgR2JJRyk/discussion
Added more info to item validation error message
1
0001381: Adding more info to item validation error message
When validation of an item fails In-Portal triggers a notice with following text and adds detailed error list in a debugger report:

Notice (#1): Validation failed in prefix - conf, FieldErrors follow (look at items with "pseudo" key set)
You may ignore this notice if submitted data really has a validation error in ...\core\kernel\utility\validator.php on line 120


If you're editing only 1 record at a time (e.g. on editing page), then this is normal. But when multiple items are changed in database (e.g. 20), and only several of them have validation errors, then it's hard to determine which ones exactly.


I'm proposing to display item's ID and Title Field value as a help in solving this item identification problem. With proposed changed message now will look as follows:

Notice (#1): Validation failed in prefix - conf (VariableId: 55; VariableName: Require_AdminSSL), FieldErrors follow (look at items with "pseudo" key set)
You may ignore this notice if submitted data really has a validation error in ...\core\kernel\utility\validator.php on line 120
related to 0001003resolved  (5.2.1)alex Logging engine 
patch more_info_about_validated_item.patch (1,039) 2012-08-20 10:23
http://tracker.in-portal.org/file_download.php?file_id=1784&type=bug
Issue History
2012-08-20 10:25 alex Note Added: 0005149
2012-08-20 10:25 alex Status reviewed and tested => resolved
2012-08-20 10:25 alex Fixed in Version => 5.2.1-B1
2012-08-20 10:25 alex Resolution open => fixed
2012-08-20 10:25 alex Assigned To !COMMUNITY => alex
2012-08-20 10:25 alex Changeset attached 5.2.x r15522
2012-08-20 10:25 alex Note Added: 0005148
2012-08-20 10:25 alex Status needs testing => reviewed and tested
2012-08-20 10:24 alex Assigned To => !COMMUNITY
2012-08-20 10:24 alex Developer => alex
2012-08-20 10:24 alex Status active => needs testing
2012-08-20 10:24 alex Reference => https://groups.google.com/d/topic/in-portal-dev/8SfgR2JJRyk/discussion
2012-08-20 10:23 alex Relationship added related to 0001003
2012-08-20 10:23 alex New Issue
2012-08-20 10:23 alex File Added: more_info_about_validated_item.patch
2012-08-20 10:23 alex Change Log Message => Added more info to item validation error message
2012-08-20 10:23 alex Estimate Points => 1

Notes
(0005148)
alex   
2012-08-20 10:25   
Will test all together later.
(0005149)
alex   
2012-08-20 10:25   
Fix committed to 5.2.x branch. Commit Message:

Fixes 0001381: Adding more info to item validation error message