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]