myexperiment-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[myexperiment-hackers] [2238] trunk/app/controllers/workflows_controller


From: noreply
Subject: [myexperiment-hackers] [2238] trunk/app/controllers/workflows_controller.rb: fixed type checking on uploading a new workflow version
Date: Fri, 3 Jul 2009 11:13:06 -0400 (EDT)

Revision
2238
Author
dgc
Date
2009-07-03 11:13:05 -0400 (Fri, 03 Jul 2009)

Log Message

fixed type checking on uploading a new workflow version

Modified Paths

Diff

Modified: trunk/app/controllers/workflows_controller.rb (2237 => 2238)


--- trunk/app/controllers/workflows_controller.rb	2009-06-24 16:55:23 UTC (rev 2237)
+++ trunk/app/controllers/workflows_controller.rb	2009-07-03 15:13:05 UTC (rev 2238)
@@ -734,7 +734,7 @@
     end
     
     # If a custom workflow type has been specified, check that it is not "Other" or "other" as this can cause havoc in the UI.
-    if params[:metadata_choice] == 'custom' && params[:workflow][:type].downcase == 'other'
+    if params[:metadata_choice] == 'custom' && params[:workflow][:type] && params[:workflow][:type].downcase == 'other'
 
       custom_type_specified = params[:workflow][:type_other]
 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]