Jonathan M
Member
- Affected version
- 2.2.4
In the button macro in the multi_quote_macros template, 'arg-addMessage' and 'arg-removeMessage' are accepted. They also have default values set.
But deeper inside the macro, these passed values are ignored. Instead, their defaults are used directly.
The passed values should be used here and the default values only declared once.
Code:
<xf:macro name="button"
arg-href="!"
arg-messageSelector="!"
arg-storageKey="!"
arg-addMessage="{{ phrase('multiquote_add_message') }}"
arg-removeMessage="{{ phrase('multiquote_remove_message') }}"
arg-row="{{ false }}">
But deeper inside the macro, these passed values are ignored. Instead, their defaults are used directly.
Code:
<xf:button class="button--link button--multiQuote"
style="display: none;"
data-xf-init="multi-quote"
data-href="{$href}"
data-message-selector="{$messageSelector}"
data-storage-key="{$storageKey}"
data-add-message="{{ phrase('multiquote_add_message') }}"
data-remove-message="{{ phrase('multiquote_remove_message') }}"
icon="quote">
The passed values should be used here and the default values only declared once.