Commit 1137838d authored by Vincent Pelletier's avatar Vincent Pelletier

CMFActivity.Activity.SQLBase: Fix None dependency on monocolumn condition.

This is already working for multi-column conditions (among other malformed
values), but in the monocolumn case the type-check treats None in the same
branch as sequences, which cause the error:
  TypeError: 'NoneType' object is not iterable
As the condition is already covered for multi-column case, put this test
in the monocolumn codepath.
parent fb1f6d48
Pipeline #13288 failed with stage
......@@ -454,6 +454,8 @@ CREATE TABLE %s (
# enumerate all possible combinations for later reverse-lookup.
column_count = len(column_list)
if column_count == 1:
if dependency_value is None:
continue
dependency_value_list = [
x
for x in (
......
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