From 197679738ae5c0dceef46baefbd38a057c71e857 Mon Sep 17 00:00:00 2001 From: Cyril Vazquez <cyril.vazquez@maarch.org> Date: Tue, 5 Mar 2013 11:28:14 +0000 Subject: [PATCH] --- core/trunk/core/class/ObjectControlerAbstract.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/trunk/core/class/ObjectControlerAbstract.php b/core/trunk/core/class/ObjectControlerAbstract.php index 065c9c5495e..405b46750a4 100644 --- a/core/trunk/core/class/ObjectControlerAbstract.php +++ b/core/trunk/core/class/ObjectControlerAbstract.php @@ -184,7 +184,9 @@ abstract class ObjectControler $result = array(); foreach ($object->getArray() as $key => $value) { if (!in_array($key,$computed_properties)) { - if (substr_compare($key, '_id', -3) == 0 + if($key == self::$specific_id) { + // do not update key + } elseif (substr_compare($key, '_id', -3) == 0 || substr_compare($key, '_number', -7) == 0) { if (in_array($key, self::$foolish_ids)) { $result[] = $key . "='" . $value . "'"; -- GitLab