In-Portal Issue Tracker - In-Portal CMS
Viewing Issue Advanced Details
351 [In-Portal CMS] Optimization task always 2009-10-05 06:41 2011-09-30 11:56
alex  
 
normal  
active 5.0.1  
open  
 
none  
0
0000351: Remove "kDBEventHandler::RemoveRequiredFields" method
Method "kDBEventHandler::RemoveRequiredFields" is used to make all required fields non-required to be able save object without validating it. This doesn't help in case, when custom validation is used.

I propose to remove this method, and use "$object->IgnoreValidation = true;" where mentioned above method is used.
related to 0000271closed  (5.2.0)alex Redesign "Data Validation" Engine 
Issue History
2011-09-30 11:56 alex Target Version 5.2.0 => Icebox
2011-09-25 11:21 Dmitry Note Added: 0003908
2011-09-25 11:21 Dmitry Target Version Icebox => 5.2.0
2011-09-25 09:32 alex Relationship added related to 0000271
2011-09-25 09:32 alex Note Added: 0003907
2009-10-06 14:24 alex Type bug report => task
2009-10-05 06:41 alex Target Version => Icebox
2009-10-05 06:41 alex New Issue

Notes
(0003907)
alex   
2011-09-25 09:32   
This maybe not the best idea to do this, since proposed solution completely ignores all validation errors.

For example I saw this method to be used for resetting all validation settings and then user manually set the ones he needs right now.

This method should go away by itself since Forms functionality 0000271 task will be implemented.
(0003908)
Dmitry   
2011-09-25 11:21   
Moved to 5.2.0 for further review based on the Alex's note