Commit f3c8c35d authored by Ivan Tyagov's avatar Ivan Tyagov

In some case ERP5 form caller may send empty strings.

Make sure that only in this case we do NOT override discovered by metadata values (reference, language, version).

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33029 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4585bf13
......@@ -111,7 +111,7 @@ else:\n
for key in [\'title\', \'reference\', \'group\', \'source_project\', \n
\'short_title\', \'language\', \'version\', \'description\']:\n
value = kw.get(key, kw.get(\'field_your_%s\' %key, kw.get(\'field_my_%s\' %key, None)))\n
if value is not None:\n
if value not in MARKER:\n
document_edit_kw[key] = value\n
if attach_document_to_context:\n
# attach document to current context using follow_up\n
......
73
\ No newline at end of file
74
\ No newline at end of file
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