Forums / Developer / sort_by attribute and attribute type / Comment50481
Thiago Campos Viana
Friday 20 March 2009 12:49:39 pm
if u are updating the attribute vote by sql, u have to update the field sort_key_int of the table ezcontentobject_attribute, it's something like this:
$l_STR_Requete = "UPDATE ezcontentobject_attribute SET data_int = \"".$l_INT_Nb."\", sort_key_int = \"".$l_INT_Nb."\" WHERE version = \"".$l_TAB_Resul[0]['version']."\" AND id =\"".$l_TAB_Resul[0]['id']."\" ;";
eZ Publish Certified Developer: http://auth.ez.no/certification/verify/376924 Twitter: http://twitter.com/tcv_br