Use of $this->skip_validation [message #2239] |
Thu, 06 August 2009 06:22 ![Go to next message Go to next message](/theme/default/images/down.png) |
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 ![Go to previous message Go to previous message](/theme/default/images/up.png) |
AJM
Messages: 2361 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
|
|
|