Fix to enable columnlistparameter to correctly restore values on redo if use_header_names is set

This commit is contained in:
Ross Lazarus
2012-10-25 18:45:32 +11:00
parent 114e12ad2c
commit 3cd23b2c25
+1 -1
View File
@@ -1002,7 +1002,7 @@ class ColumnListParameter( SelectToolParameter ):
for col in column_list:
if col != 'None':
if type(col) == type(()) and len(col) == 2: # fiddled
options.append((col[1],'c' + col[0],False))
options.append((col[1],col[0],False))
else:
options.append( ( 'c' + col, col, False ) )
return options