src/pyams_content/shared/common/zmi/properties.py
changeset 1456 a07b27effd38
parent 1348 ae293e874417
--- a/src/pyams_content/shared/common/zmi/properties.py	Mon Feb 01 13:47:19 2021 +0100
+++ b/src/pyams_content/shared/common/zmi/properties.py	Wed Feb 03 08:34:45 2021 +0100
@@ -120,7 +120,8 @@
 def handle_content_properties_data_extraction(event):
     """Automatically set short_name as title"""
     data = event.data
-    data['short_name'] = data['title'].copy()
+    if not event.form.context.handle_short_name:
+        data['short_name'] = data['title'].copy()
     if 'content_url' in data:
         data['content_url'] = generate_url(data['content_url'])