Tweak "coalesce" logic for merging field data

This commit is contained in:
Lance Edgar 2020-07-22 19:53:35 -05:00
parent 4c3112b85b
commit 0798102ba5

View file

@ -2128,7 +2128,9 @@ class MasterView(View):
def get_merge_resulting_data(self, remove, keep):
result = dict(keep)
for field in self.get_merge_coalesce_fields():
if remove[field] and not keep[field]:
if remove[field] is not None and keep[field] is None:
result[field] = remove[field]
elif remove[field] and not keep[field]:
result[field] = remove[field]
for field in self.get_merge_additive_fields():
if isinstance(keep[field], (list, tuple)):