Skip to content

Commit

Permalink
fix: dashboard view from workspace (backport #18779) (#18813)
Browse files Browse the repository at this point in the history
* fix: dashboard view from workspace

(cherry picked from commit 9a7e59e)

* Update breadcrumbs.js

(cherry picked from commit 15cae83)

Co-authored-by: Ponnusamy <95607086+Ponnusamy1-V@users.noreply.github.com>
  • Loading branch information
mergify[bot] and Ponnusamy1-V committed Nov 9, 2022
1 parent 5ee6dc4 commit 42f5e04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frappe/public/js/frappe/views/breadcrumbs.js
Expand Up @@ -41,7 +41,6 @@ frappe.breadcrumbs = {
type: type,
};
}

this.all[frappe.breadcrumbs.current_page()] = obj;
this.update();
},
Expand Down Expand Up @@ -133,8 +132,9 @@ frappe.breadcrumbs = {
}
},

set_list_breadcrumb(breadcrumbs) {
async set_list_breadcrumb(breadcrumbs) {
const doctype = breadcrumbs.doctype;
await frappe.model.with_doctype(doctype);
const doctype_meta = frappe.get_doc("DocType", doctype);
if (
(doctype === "User" && !frappe.user.has_role("System Manager")) ||
Expand Down

0 comments on commit 42f5e04

Please sign in to comment.