[ARVADOS] created: 533d3511169d756e3148632d24756c13879a0701

git at public.curoverse.com git at public.curoverse.com
Thu Jul 17 21:21:51 EDT 2014


        at  533d3511169d756e3148632d24756c13879a0701 (commit)


commit 533d3511169d756e3148632d24756c13879a0701
Author: radhika <radhika at curoverse.com>
Date:   Thu Jul 17 21:11:40 2014 -0400

    3160: use blank name when copying an unnamed pipeline instance.

diff --git a/apps/workbench/app/controllers/application_controller.rb b/apps/workbench/app/controllers/application_controller.rb
index 7d7ea95..479cebd 100644
--- a/apps/workbench/app/controllers/application_controller.rb
+++ b/apps/workbench/app/controllers/application_controller.rb
@@ -258,7 +258,11 @@ class ApplicationController < ActionController::Base
       if @object.name and @object.name != ''
         @object.name = "Copy of #{@object.name}"
       else
-        @object.name = "Copy of unnamed #{@object.class_for_display.downcase}"
+        if @object.class.name == 'PipelineInstance'
+          @object.name = ""
+        else
+          @object.name = "Copy of unnamed #{@object.class_for_display.downcase}"
+        end
       end
     end
     @object.save!

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list