Extrafields and subqueries. File extrafields.class.php, } elseif ($type == 'sellist') { // List of values selected from a table (1 choice) #31401
Labels
Bug
This is a bug (something does not work as expected)
Bug
According to UCSc, the following : user_rib:number|label:number::(fk_user:=:($SEL$ fk_user_author FROM llx_expensereport WHERE rowid=$ID$)) should be the correct syntax. However, it does not work. The errorr returned is UCS = Filter error - Bad syntax of the search string. The errorr returned from forgeSQLFromUniversalSearchCriteria($InfoFieldList[4], $errstr, 1) is Error in request SELECT number as rowid, number, label FROM llx_user_rib WHERE (fk_user:=:(SELECT fk_user_author FROM llx_expensereport WHERE rowid=339)) ORDER BY number, label You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ':=:(SELECT fk_user_author FROM llx_expensereport WHERE rowid=339)) ORDER BY n...' at line 1. Check setup of extra parameters. The InfoFieldList[4] is (fk_user:=:(SELECT fk_user_author FROM llx_expensereport WHERE rowid=339)).
Dolibarr Version
V20.0.1
Environment PHP
No response
Environment Database
No response
Steps to reproduce the behavior and expected behavior
No response
Attached files
No response
The text was updated successfully, but these errors were encountered: