mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-05 21:29:11 +00:00
fix: Sider and indexing (minor)
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
|
||||
frappe.ui.form.on('Homepage', {
|
||||
setup: function(frm) {
|
||||
frm.fields_dict["products"].grid.get_field("item").get_query = function(){
|
||||
frm.fields_dict["products"].grid.get_field("item").get_query = function() {
|
||||
return {
|
||||
filters: {'published': 1}
|
||||
}
|
||||
@@ -21,9 +21,9 @@ frappe.ui.form.on('Homepage', {
|
||||
});
|
||||
|
||||
frappe.ui.form.on('Homepage Featured Product', {
|
||||
view: function(frm, cdt, cdn){
|
||||
var child= locals[cdt][cdn]
|
||||
if(child.item_code && child.route){
|
||||
view: function(frm, cdt, cdn) {
|
||||
var child= locals[cdt][cdn];
|
||||
if (child.item_code && child.route) {
|
||||
window.open('/' + child.route, '_blank');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user