commit | 6f50b3a5b2077e8636f114fe867550e06b73fdf3 | [log] [tgz] |
---|---|---|
author | Faris Ansari <netchampfaris@users.noreply.github.com> | Tue Aug 29 14:02:49 2017 +0530 |
committer | GitHub <noreply@github.com> | Tue Aug 29 14:02:49 2017 +0530 |
tree | 5d11176271e1fb4b587a5c440d04f6144e429544 | |
parent | 97c1bcf14f3bc2495c5fa94227a0be053f25e9e3 [diff] |
handle both cases
diff --git a/erpnext/templates/includes/product_page.js b/erpnext/templates/includes/product_page.js index 658fa53..b2d5ad9 100644 --- a/erpnext/templates/includes/product_page.js +++ b/erpnext/templates/includes/product_page.js
@@ -73,7 +73,7 @@ } } - if (window.location.search == ("?variant=" + item_code)) { + if (window.location.search == ("?variant=" + item_code) || window.location.search.includes(item_code)) { return; }