Fix for TabularToolDataTable.get_column_name_list() when value column is overloaded by e.g. name.

This commit is contained in:
Daniel Blankenberg
2013-05-23 11:11:37 -04:00
parent 1f09118f9f
commit 8a15acb8a8
+5 -2
View File
@@ -273,9 +273,12 @@ class TabularToolDataTable( ToolDataTable ):
found_column = False
for name, index in self.columns.iteritems():
if index == i:
rval.append( name )
if not found_column:
rval.append( name )
elif name == 'value':
#the column named 'value' always has priority over other named columns
rval[ -1 ] = name
found_column = True
break
if not found_column:
rval.append( None )
return rval