Use of $this->skip_validation [message #2239] |
Thu, 06 August 2009 06:22 |
gpatti
Messages: 283 Registered: August 2008
|
Senior Member |
|
|
I am trying to update a record and skip the associated validation as per the documentation. However, I've found that _cm_post_updateRecord() is being executed on line 4598 of std.table.class.inc even though $this->skip_validation is set.
Is this a bug or have I misunderstood the processing somewhere?
Graham
|
|
|
Re: Use of $this->skip_validation [message #2240 is a reply to message #2239] |
Thu, 06 August 2009 19:09 |
AJM
Messages: 2368 Registered: April 2006 Location: Surrey, UK
|
Senior Member |
|
|
Unfortunately the documentation is slighty out of date as a call to _cm_post_updateRecord() will still be made. This is because I came across a set of circumstances where I wanted to skip the validation but NOT the post-update processing.
If you want the code inside_cm_post_updateRecord() to be ignored then you will have to test the contents of $this->skip_validation yourself.
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
|
|
|