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:
Rob Crittenden
2008-11-10 17:07:41 -05:00
parent 891068087e
commit e377ab0b7f

View File

@@ -204,7 +204,7 @@ def main():
set_add_usage("add") set_add_usage("add")
sys.exit(1) sys.exit(1)
(attr,value) = a (attr,value) = a
cvalue = user.getValue(attr) cvalue = user.getValues(attr)
if cvalue: if cvalue:
if isinstance(cvalue,str): if isinstance(cvalue,str):
cvalue = [cvalue] cvalue = [cvalue]