Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:frappe/frappe into site-web-logg…
Browse files Browse the repository at this point in the history
…er-fix
  • Loading branch information
gavindsouza committed Jul 30, 2020
2 parents faa9a54 + 9f90b81 commit fd44b9c
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions frappe/public/js/frappe/widgets/widget_dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,18 +174,12 @@ class ShortcutDialog extends WidgetDialog {
onchange: () => {
if (this.dialog.get_value("type") == "DocType") {
let doctype = this.dialog.get_value("link_to");

doctype &&
frappe.db
.get_value("DocType", doctype, "issingle")
.then((res) => {
if (res.message && res.message.issingle) {
this.hide_filters();
} else {
this.setup_filter(doctype);
this.show_filters();
}
});
if (frappe.boot.single_types.includes(doctype)) {
this.hide_filters();
} else {
this.setup_filter(doctype);
this.show_filters();
}
} else {
this.hide_filters();
}
Expand Down

0 comments on commit fd44b9c

Please sign in to comment.