merge default
authorDamien Correia
Mon, 25 Jun 2018 16:33:32 +0200
changeset 740 d6548428279d
parent 738 046189ebbbd0 (current diff)
parent 732 b4e70a25236a (diff)
child 750 b99892d5fa71
merge default
--- a/src/pyams_content/shared/common/zmi/rename.py	Mon Jun 25 16:15:14 2018 +0200
+++ b/src/pyams_content/shared/common/zmi/rename.py	Mon Jun 25 16:33:32 2018 +0200
@@ -88,7 +88,7 @@
     def update_content(self, content, data):
         data = data.get(self, data)
         old_name = content.__name__
-        new_name = data['__name__'] = translate_string(content.__name__, spaces='-', keep_chars='-')
+        new_name = data['__name__'] = translate_string(data['__name__'], spaces='-', keep_chars='-')
         changes = super(SiteContainerRenameForm, self).update_content(content, data)
         if changes:
             # revert rename to adjust container properties