From d279baba6e21ae4579992105b0f1b2e4e20fd468 Mon Sep 17 00:00:00 2001 From: maforget <11904426+maforget@users.noreply.github.com> Date: Sat, 1 Jun 2024 02:43:13 -0400 Subject: [PATCH] fix when setting a string to a list field, it would comma separate each letter. Seems to affect RegexVarReplace, but the fix may affect all the program. --- dmClasses.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dmClasses.py b/dmClasses.py index 18d16d6..d04da1a 100644 --- a/dmClasses.py +++ b/dmClasses.py @@ -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)