Skip to content

Commit

Permalink
Correct the link to the Customer Admin page
Browse files Browse the repository at this point in the history
Use "customer_link" with the contextual "id_customer" taken from the Vue.js loop
  • Loading branch information
moncef-essid authored Dec 26, 2020
1 parent 954f7af commit 73b3d13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion views/templates/admin/tabs/dataConfig.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
<span class="text-muted">{l s='Orders number' mod='psgdpr'}: (( customer.nb_orders ))</span>
</div>
<div class="panel-footer">
<a v-on:click.stop :href="customer_link+customer.id_customer" target="_blank" class="btn btn-default fancybox"><i class="icon-search"></i> {l s='Details' mod='psgdpr'}</a>
<a v-on:click.stop :href="customer_link.replace(/\/0\//,'/'+customer.id_customer+'/')" target="_blank" class="btn btn-default fancybox"><i class="icon-search"></i> {l s='Details' mod='psgdpr'}</a>
<button type="button" v-on:click.stop="deleteCustomer('customer', customer.id_customer, index)" class="btn btn-danger pull-right"><i class="icon-trash"></i> {l s='Remove data' mod='psgdpr'}</button>
<a v-on:click.stop="downloadInvoices(customer.id_customer, index)" class="btn btn-primary pull-right"><i class="icon-download"></i> {l s='Download invoices' mod='psgdpr'}</a>
</div>
Expand Down

0 comments on commit 73b3d13

Please sign in to comment.