From d4aaae8618aebc85f8851169a7947bcb81974a16 Mon Sep 17 00:00:00 2001 From: d-m-u Date: Fri, 15 Dec 2017 08:14:13 -0500 Subject: [PATCH] Label has been deprecated and I need PR for day --- app/models/dialog/container_template_service_dialog.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/models/dialog/container_template_service_dialog.rb b/app/models/dialog/container_template_service_dialog.rb index c64ba833a7b..5612dd35e79 100644 --- a/app/models/dialog/container_template_service_dialog.rb +++ b/app/models/dialog/container_template_service_dialog.rb @@ -1,12 +1,12 @@ class Dialog class ContainerTemplateServiceDialog - def self.create_dialog(label, parameters) - new.create_dialog(label, parameters) + def self.create_dialog(name, parameters) + new.create_dialog(name, parameters) end # This dialog is to be used by a container template service - def create_dialog(label, parameters) - Dialog.new(:label => label, :buttons => "submit,cancel").tap do |dialog| + def create_dialog(name, parameters) + Dialog.new(:name => name, :buttons => "submit,cancel").tap do |dialog| tab = dialog.dialog_tabs.build(:display => "edit", :label => "Basic Information", :position => 0) add_options_group(tab, 0) add_parameters_group(tab, 1, parameters)