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)
Error updating the initial_passthru field in menu_task [message #3049] Sat, 11 August 2012 02:09 Go to next message
edortizq is currently offline  edortizq
Messages: 82
Registered: August 2008
Location: Ecuador
Member

Dear Sir,
I created a task, when trying to modify the parameter initial_passthru of it, the menu system came down, find attached a PDF file with error
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 next message
AJM is currently offline  AJM
Messages: 2347
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.


Re: Error updating the initial_passthru field in menu_task [message #3051 is a reply to message #3050] Sat, 11 August 2012 11:39 Go to previous messageGo to next message
edortizq is currently offline  edortizq
Messages: 82
Registered: August 2008
Location: Ecuador
Member

Thanks for your answer.
I haven't touched the menu system code, and the "pro_product_codes(search)" transaction as the transaction wich should do the "initial_passthru" are the original generated by the framework.
Is there anything else I should check?

[Updated on: Sat, 11 August 2012 11:40]

Report message to a moderator

Re: Error updating the initial_passthru field in menu_task [message #3052 is a reply to message #3051] Sat, 11 August 2012 12:32 Go to previous message
AJM is currently offline  AJM
Messages: 2347
Registered: April 2006
Location: Surrey, UK
Senior Member
You will need to use your debugger to step through the updateRecord() method inside 'dml.mysqli.class.inc' where it generates the SQL query.

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


Current Time: Wed May 01 05:34:35 EDT 2024

Total time taken to generate the page: 0.01368 seconds