From 97c1bcf14f3bc2495c5fa94227a0be053f25e9e3 Mon Sep 17 00:00:00 2001 From: Joel Mesmer Date: Thu, 17 Aug 2017 22:20:18 +0200 Subject: [PATCH] improvement for self-postbacks --- erpnext/templates/includes/product_page.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/templates/includes/product_page.js b/erpnext/templates/includes/product_page.js index 3905959928a..658fa535885 100644 --- a/erpnext/templates/includes/product_page.js +++ b/erpnext/templates/includes/product_page.js @@ -73,7 +73,7 @@ frappe.ready(function() { } } - if (window.location.search.indexOf(item_code)!==-1) { + if (window.location.search == ("?variant=" + item_code)) { return; }