Fix appending to a multi-valued field.
There was a bug where only the first value of a multi-valued field would be returned.
This commit is contained in:
1 parent
891068087e
commit
e377ab0b7f
1 file changed
+1
-1
@@ -204,7 +204,7 @@ def main():
|
||||
set_add_usage("add")
|
||||
sys.exit(1)
|
||||
(attr,value) = a
|
||||
cvalue = user.getValue(attr)
|
||||
cvalue = user.getValues(attr)
|
||||
if cvalue:
|
||||
if isinstance(cvalue,str):
|
||||
cvalue = [cvalue]
|
||||
|
||||
Reference in new issue
Block a user