Skip to content

Commit

Permalink
Fix Add only adding the last value for lists
Browse files Browse the repository at this point in the history
  • Loading branch information
maforget committed Jul 12, 2024
1 parent a63ae05 commit bedce98
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dmClasses.py
Original file line number Diff line number Diff line change
Expand Up @@ -1389,14 +1389,14 @@ def Add(self, book):
newVal = getValue

if self.Field in dmGlobals.FIELDSLIST:
addItem = True
for value in setValue:
addItem = True
for existingItem in newVal:
if value.lower() == existingItem.lower():
addItem = False
break
if addItem:
newVal.Add(value)
if addItem:
newVal.Add(value)
else: #since this is only a valid modifier for list and string assume string
for item in setValue:
newVal = newVal + item
Expand Down

0 comments on commit bedce98

Please sign in to comment.