Commit 1ef9d9bd authored by Vincent Pelletier's avatar Vincent Pelletier

ZSQLCatalog: Only strip value when used

parent a40cbe4d
......@@ -2041,9 +2041,8 @@ class Catalog(Folder,
if len(split_entire_definition) != 2:
LOG('SQLCatalog', WARNING, 'Malformed related key definition: %r. Ignored.' % (entire_definition, ))
continue
name, definition = [x.strip() for x in split_entire_definition]
if name == key:
result = definition
if split_entire_definition[0].strip() == key:
result = split_entire_definition[1].strip()
break
if result is not None:
related_key_definition_cache[key] = result
......
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