r4895 bugfix: commit #4893 caused inability to set attributes in CLI scripts
authorAlexey Andriyanov <alan@al-an.info>
Sat, 7 Jan 2012 06:51:16 +0000 (06:51 +0000)
committerAlexey Andriyanov <alan@al-an.info>
Sat, 7 Jan 2012 06:51:16 +0000 (06:51 +0000)
commitUpdateAttrValue: getBypassValue call switched to $object_id var

wwwroot/inc/database.php

index f0af5b8..e8cf486 100644 (file)
@@ -2990,7 +2990,7 @@ function commitUpdateAttrValue ($object_id, $attr_id, $value = '')
        usePreparedDeleteBlade ('AttributeValue', array ('object_id' => $object_id, 'attr_id' => $attr_id));
        if ($value == '')
                return;
-       $object = spotEntity ('object', getBypassValue());
+       $object = spotEntity ('object', $object_id);
        usePreparedInsertBlade
        (
                'AttributeValue',