From 26005c25b2436a86cb8fe218b284c056a3db5c55 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Thu, 28 Jul 2016 15:36:11 +0530 Subject: [PATCH] [minor] fix filter for item-code --- erpnext/portal/doctype/homepage/homepage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/portal/doctype/homepage/homepage.js b/erpnext/portal/doctype/homepage/homepage.js index df7f5ce6ae..100074f07d 100644 --- a/erpnext/portal/doctype/homepage/homepage.js +++ b/erpnext/portal/doctype/homepage/homepage.js @@ -15,7 +15,7 @@ frappe.ui.form.on('Homepage Featured Product', { method: 'frappe.client.get_value', args: { 'doctype': 'Item', - 'filters': featured_product.item_code, + 'filters': {'name': featured_product.item_code}, 'fieldname': [ 'item_name', 'web_long_description',