Bugfix for account name feature/uptraLive
authorSteve Sutton <steve@gaslightmedia.com>
Thu, 12 Sep 2019 14:30:27 +0000 (10:30 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Thu, 12 Sep 2019 14:30:27 +0000 (10:30 -0400)
Change the account javascript which is setting the account name to deal
with the names that may have apostrophes in it.

views/admin/billing/invoices.html

index 5a20fe5..b8f1443 100644 (file)
                     {$selected = $m.ref_name|unescape:'html'|replace:'"':''}
                 {/if}
             {/foreach}
-            $('#account_name').autocomplete().val('{$selected}');
+            $('#account_name').autocomplete().val("{$selected|unescape:'html'|replace:'"':''}");
         {/if}
 
         // Flash certain elements for a short time after display