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 committed 2008-11-12 15:55:59 -05:00
1 parent 891068087e
commit e377ab0b7f
1 file changed
+1 -1
+1 -1
View File
@@ -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]