Created
July 2, 2018 19:05
-
-
Save thomsbg/b805f2610c3b1ca7fc2e94dafccfce1b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/app/services/slug_change_service.rb b/app/services/slug_change_service.rb | |
index 590f3915de4..683a8dc3a2e 100644 | |
--- a/app/services/slug_change_service.rb | |
+++ b/app/services/slug_change_service.rb | |
@@ -30,7 +30,7 @@ def modify_page_slug! | |
end | |
def modify_stack_slug! | |
- modify_legacy_slug!(@entry.slug) | |
+ result = modify_legacy_slug!(@entry.slug) | |
# If stack slug was successfully changed to the new valid slug, | |
# cycle through cards within stack and create legacy slug for it | |
@@ -45,6 +45,8 @@ def modify_stack_slug! | |
modify_entry_slug!(card, legacy_card_slug, new_card_slug) | |
end | |
end | |
+ | |
+ result | |
end | |
def modify_legacy_slug!(old_slug_string) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment