From 10a4e0ee8996ea182e6a5c4d6dff74acfc53e37f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C5=81ukasz=20Nowak?= <luke@nexedi.com>
Date: Mon, 5 Mar 2012 15:10:53 +0100
Subject: [PATCH] Setup to new value.

---
 product/ERP5Type/Constraint/PropertyTypeValidity.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/product/ERP5Type/Constraint/PropertyTypeValidity.py b/product/ERP5Type/Constraint/PropertyTypeValidity.py
index d14300c2f4..c8ac32ebb3 100644
--- a/product/ERP5Type/Constraint/PropertyTypeValidity.py
+++ b/product/ERP5Type/Constraint/PropertyTypeValidity.py
@@ -143,6 +143,6 @@ class PropertyTypeValidity(Constraint):
           error_list.append(self._generateError(obj,
             self._getMessage('message_value_modified'), dict(
               key=property_id, old=oldvalue, new=value)))
-          obj.setProperty(property_id, oldvalue)
+          obj.setProperty(property_id, value)
 
     return error_list
-- 
2.30.9