mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 16:04:46 +00:00
fix button "Edit" encode url in address and contact template
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
{% if(addr_list[i].is_shipping_address) { %}
|
{% if(addr_list[i].is_shipping_address) { %}
|
||||||
<span class="text-muted">({%= __("Shipping") %})</span>{% } %}
|
<span class="text-muted">({%= __("Shipping") %})</span>{% } %}
|
||||||
|
|
||||||
<a href="#Form/Address/{%= addr_list[i].name %}"
|
<a href="#Form/Address/{%= encodeURIComponent(addr_list[i].name) %}"
|
||||||
class="btn btn-default btn-xs pull-right">
|
class="btn btn-default btn-xs pull-right">
|
||||||
{%= __("Edit") %}</a>
|
{%= __("Edit") %}</a>
|
||||||
</p>
|
</p>
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
<span class="text-muted">({%= __("Primary") %})</span>
|
<span class="text-muted">({%= __("Primary") %})</span>
|
||||||
{% } %}
|
{% } %}
|
||||||
|
|
||||||
<a href="#Form/Contact/{%= contact_list[i].name %}"
|
<a href="#Form/Contact/{%= encodeURIComponent(contact_list[i].name) %}"
|
||||||
class="btn btn-xs btn-default pull-right">
|
class="btn btn-xs btn-default pull-right">
|
||||||
{%= __("Edit") %}</a>
|
{%= __("Edit") %}</a>
|
||||||
</p>
|
</p>
|
||||||
|
|||||||
Reference in New Issue
Block a user