no issue # : fix nil issue in pipeline_templates page
authorradhika <radhika@curoverse.com>
Wed, 17 Sep 2014 15:38:37 +0000 (11:38 -0400)
committerradhika <radhika@curoverse.com>
Wed, 17 Sep 2014 15:38:37 +0000 (11:38 -0400)
apps/workbench/app/views/pipeline_templates/_show_recent.html.erb

index 65da910da763da8739ed9c158ba6e7f99f04e2a9..252b93ad45664ac041c7016ab6b82c09bcbf4ba2 100644 (file)
@@ -35,7 +35,7 @@
                                      action_method: 'post',
                                      action_data: {selection_param: 'pipeline_instance[owner_uuid]',
                                                    'pipeline_instance[pipeline_template_uuid]' => ob.uuid,
-                                                   'pipeline_instance[description]' => "Created at #{Time.now.localtime}" + (ob.name.andand.size>0 ? " using the pipeline template *#{ob.name}*" : ""),
+                                                   'pipeline_instance[description]' => "Created at #{Time.now.localtime}" + (ob.name.andand.size.andand>0 ? " using the pipeline template *#{ob.name}*" : ""),
                                                    'success' => 'redirect-to-created-object'
                                                   }.to_json),
                 { class: "btn btn-default btn-xs", title: "Run #{ob.name}", remote: true, method: 'get' }