diff options
-rw-r--r-- | app/lib/command_tag/command/footer_tools.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/lib/command_tag/command/footer_tools.rb b/app/lib/command_tag/command/footer_tools.rb index c0f347303..162b66d85 100644 --- a/app/lib/command_tag/command/footer_tools.rb +++ b/app/lib/command_tag/command/footer_tools.rb @@ -15,7 +15,10 @@ module CommandTag::Command::FooterTools return @vars.delete(var_name) if read_falsy_from(normalize(args[0])) if name == 'default' - @vars['persist:footer:default'] = @vars[var_name].presence || [args.join(' ')] + name = normalize(args.shift) + var_name = "persist:footer:#{name}" + @vars[var_name] = [args.join(' ')] if args.present? + @vars['persist:footer:default'] = var(var_name) elsif %w(default DEFAULT).include?(args[0]) @vars['persist:footer:default'] = var(var_name) else |