Extrafield sql error after upgrade V20

We upgraded from 19.0.3. to version 20.0.2 we have a extrafield in products: Select from table which had the following settings.

product:ref:rowid::ref LIKE ‘%pack_box_carton%’

This field was working in version 19 but now get an error in version 20:

Error in request SELECT rowid as rowid, ref FROM llx_product WHERE Filter error - Bad syntax of the search string ORDER BY ref You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘error - Bad syntax of the search string ORDER BY ref’ at line 1. Check setup of extra parameters.

Something has changed?

Hi @erikvanberkum

You should always check the ChangeLog and test before upgrading.

so from now on the correct syntax will be

product:ref:rowid::(ref:LIKE:'%pack_box_carton%')

Thanks missed that, it’s working now. I thought already something must have changed so didnt post to github.

Hi

My similar problem (version 20.0.2):
Old:
resource:ref:rowid::entity

New:
resource:ref:rowid::(entity:=:‘1’)
OK working
resource:ref:rowid::(entity:=:‘%entity%’)
Not working.

Thanks your answer

Solution:
resource:ref:rowid

Sorry

1 Like