-
Notifications
You must be signed in to change notification settings - Fork 897
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When copying ServiceTemplate copy only direct_custom_buttons #18960
Conversation
Can you put a test in for copy of copy, as well, please? |
@@ -7,7 +7,7 @@ def template_copy(new_name = "Copy of " + name + Time.zone.now.to_s) | |||
dup.tap do |template| | |||
template.update_attributes(:name => new_name, :display => false) | |||
service_resources.each { |service_resource| resource_copy(service_resource, template) } | |||
custom_buttons.each { |custom_button| custom_button_copy(custom_button, template) } | |||
direct_custom_buttons.each { |custom_button| custom_button_copy(custom_button, template) } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Looks good. Thanks @ZitaNemeckova and @himdel
a46d14f
to
bb47290
Compare
@d-m-u Added :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Checked commit ZitaNemeckova@bb47290 with ruby 2.4.6, rubocop 0.69.0, haml-lint 0.20.0, and yamllint 1.10.0 |
Fixes #18954
Based on #18494 (comment)
Steps to reproduce:
Before:
After:
It works and
copy_of_copy
is created :)@gmcculloug Please have look, thanks :)
cc @d-m-u