myexperiment-hackers
[Top][All Lists]
Advanced

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

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


From: noreply
Subject: [myexperiment-hackers] [2626] trunk/app/controllers/workflows_controller.rb: fixed upload with custom metadata and no preview
Date: Tue, 5 Jul 2011 05:25:09 -0400 (EDT)

Revision
2626
Author
dgc
Date
2011-07-05 05:25:09 -0400 (Tue, 05 Jul 2011)

Log Message

fixed upload with custom metadata and no preview

Modified Paths

Diff

Modified: trunk/app/controllers/workflows_controller.rb (2625 => 2626)


--- trunk/app/controllers/workflows_controller.rb	2011-07-05 09:10:54 UTC (rev 2625)
+++ trunk/app/controllers/workflows_controller.rb	2011-07-05 09:25:09 UTC (rev 2626)
@@ -976,7 +976,7 @@
     # The dependency on file_column has been removed, but this code remains
     # disabled on Windows until it is confirmed as working.
     unless RUBY_PLATFORM =~ /mswin32/
-      workflow_to_set.image = params[:workflow][:preview].read
+      workflow_to_set.image = params[:workflow][:preview] unless params[:workflow][:preview].empty?
     end
     
     # Set the internal unique name for this particular workflow (or workflow_version).

reply via email to

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