Index: branches/5.3.x/core/units/skins/skin_eh.php =================================================================== diff -u -N -r15483 -r15698 --- branches/5.3.x/core/units/skins/skin_eh.php (.../skin_eh.php) (revision 15483) +++ branches/5.3.x/core/units/skins/skin_eh.php (.../skin_eh.php) (revision 15698) @@ -1,6 +1,6 @@ Application->getUnitOption($this->Prefix, 'IDField'); - $table_name = $this->Application->getUnitOption($this->Prefix, 'TableName'); + $config = $this->getUnitConfig(); + $table_name = $config->getTableName(); $sql = 'UPDATE '.$table_name.' SET IsPrimary = 0'; @@ -83,7 +83,7 @@ $sql = 'UPDATE '.$table_name.' SET IsPrimary = 1 - WHERE '.$id_field.' = '.$id; + WHERE '. $config->getIDField() .' = '.$id; $this->Conn->Query($sql); }