Merge pull request #1859 from guerler/fix_collection_000

[16.01] Add workflow building mode check to collection parameter handling
This commit is contained in:
Björn Grüning
2016-03-06 15:33:02 +01:00
+2
View File
@@ -2346,6 +2346,8 @@ class DataCollectionToolParameter( BaseDataToolParameter ):
return field
def from_html( self, value, trans, other_values={} ):
if trans.workflow_building_mode:
return None
if not value and not self.optional:
raise ValueError( "History does not include a dataset collection of the correct type or containing the correct types of datasets" )
if value in [None, "None"]: