If I try to save a product version, it fails with a big red error.
Looking in the error log then it seems to be this query which fails:
select count(*) as cpt from version where idProduct=1 and versionNumber='1.0' and id!=-1
I've highlighted the part which fails in bold
which is at line 458 in the file /model/Version.php:458
If I amend the code to put a space between the = and - then it work successfully
select count(*) as cpt from version where idProduct=1 and versionNumber='1.0' and id!= -1
Looking in the error log then it seems to be this query which fails:
select count(*) as cpt from version where idProduct=1 and versionNumber='1.0' and id!=-1
I've highlighted the part which fails in bold
which is at line 458 in the file /model/Version.php:458
If I amend the code to put a space between the = and - then it work successfully
select count(*) as cpt from version where idProduct=1 and versionNumber='1.0' and id!= -1