Skip to content

Commit

Permalink
fix when setting a string to a list field, it would comma separate ea…
Browse files Browse the repository at this point in the history
…ch letter.

Seems to affect RegexVarReplace, but the fix may affect all the program.
  • Loading branch information
maforget committed Jun 1, 2024
1 parent d7aa178 commit d279bab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dmClasses.py
Original file line number Diff line number Diff line change
Expand Up @@ -1313,7 +1313,7 @@ def SetFieldValue(self, book, newValue, strField=None):
newVal = newValue

strReport = ''
if FieldValue in dmGlobals.FIELDSLIST:
if FieldValue in dmGlobals.FIELDSLIST and dmGlobals.IsList(newVal) :
if dmGlobals.SortLists:
newVal.sort()
newVal = dmGlobals.CRLISTDELIMITER.join(newVal)
Expand Down

0 comments on commit d279bab

Please sign in to comment.