fix: Sider and indexing (minor)

This commit is contained in:
marination
2021-02-19 13:14:37 +05:30
parent 862a924cd2
commit 2a3f5da6af
3 changed files with 8 additions and 10 deletions

View File

@@ -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');
}
}