Commit b874d424 authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

we should use unsafe_execute here

--HG--
branch : stable
parent e469f3602858
......@@ -26,7 +26,8 @@ class SetModificationDateOnStateChange(Hook):
return
entity = session.entity_from_eid(fromeid)
try:
entity.set_attributes(modification_date=datetime.now())
entity.set_attributes(modification_date=datetime.now(),
_cw_unsafe=True)
except RepositoryError, ex:
# usually occurs if entity is coming from a read-only source
# (eg ldap user)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment