Radicore Forum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » RADICORE » How To » Use of $this->skip_validation
Use of $this->skip_validation [message #2239] Thu, 06 August 2009 06:22 Go to next message
gpatti is currently offline  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
AJM is currently offline  AJM
Messages: 2347
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.


Previous Topic: Intranet Application
Next Topic: Missing calculated field in relationship
Goto Forum:
  


Current Time: Thu Mar 28 18:14:51 EDT 2024

Total time taken to generate the page: 0.00977 seconds