myexperiment-hackers
[Top][All Lists]
Advanced

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

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


From: noreply
Subject: [myexperiment-hackers] [3138] trunk/app/controllers/workflows_controller.rb: added fix for existing titles/ descriptions getting clobbered when new versions don't define them
Date: Thu, 27 Sep 2012 14:01:58 +0000 (UTC)

Revision
3138
Author
dgc
Date
2012-09-27 14:01:57 +0000 (Thu, 27 Sep 2012)

Log Message

added fix for existing titles/descriptions getting clobbered when new versions don't define them

Modified Paths

Diff

Modified: trunk/app/controllers/workflows_controller.rb (3137 => 3138)


--- trunk/app/controllers/workflows_controller.rb	2012-09-26 11:02:48 UTC (rev 3137)
+++ trunk/app/controllers/workflows_controller.rb	2012-09-27 14:01:57 UTC (rev 3138)
@@ -988,8 +988,8 @@
           # Rewind the file, just in case
           file.rewind
           
-          workflow_to_set.title = processor_instance.get_title
-          workflow_to_set.body = processor_instance.get_description
+          workflow_to_set.title = processor_instance.get_title      if processor_instance.get_title
+          workflow_to_set.body = processor_instance.get_description if processor_instance.get_description
           
           workflow_to_set.content_type = ContentType.find_by_title(processor_class.display_name)
           

reply via email to

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