Commit 271fc632 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

* fix UnboundLocalError that happens if no property is selected.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26018 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5d01871f
......@@ -144,7 +144,7 @@ else:\n
\n
# Build a data structure to associate column index with object property and portal type\n
column_mapping = {}\n
for (column_name, property_dict) in mapping[spreadsheet_name].items():\n
for (column_name, property_dict) in mapping.get(sheet_name, {}).items():\n
for (column_id, column_title) in column_index.items():\n
if column_name == column_title:\n
column_mapping[column_id] = property_dict\n
......
547
\ No newline at end of file
550
\ 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