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

Home » RADICORE development » Bug Reports » Error updating the initial_passthru field in menu_task (Error updating the initial_passthru field in menu_task)
Re: Error updating the initial_passthru field in menu_task [message #3050 is a reply to message #3049] Sat, 11 August 2012 04:13 Go to previous messageGo to previous message
AJM is currently offline  AJM
Messages: 2368
Registered: April 2006
Location: Surrey, UK
Senior Member
The error is caused by the fact that the value 'pro_product_codes(search)' is not enclosed with single quotes in the generated query. The only time this can happen is if your code contains the following somewhere:

$this->allow_db_function[] = 'initial_passthru';

This causes the DML object to treat the value as if it were a function call, as in 'function(args)', instead of a literal value. REmove this offending line and your problem will disappear.

The only time you should EVER populate $this->allow_db_function is when you KNOW that the value you are supplying is a function call and not a literal.


 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Multi Dropdown field on list2 screen
Next Topic: sample v3.0.0 validation error
Goto Forum:
  


Current Time: Sun Nov 24 15:20:46 EST 2024

Total time taken to generate the page: 0.01164 seconds