소스 검색

fix: do not update URL on saved reports

"Saved reports" imply that they have already stored filters, columns
etc. Applying URL from filters doesn't make sense here.
version-14
Ankush Menat 2 년 전
부모
커밋
70fbab828c
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. +2
    -1
      frappe/public/js/frappe/list/list_view.js

+ 2
- 1
frappe/public/js/frappe/list/list_view.js 파일 보기

@@ -1456,8 +1456,9 @@ frappe.views.ListView = class ListView extends frappe.views.BaseList {
on_update() {}

update_url_with_filters() {
if (frappe.get_route_str() == this.page_name) {
if (frappe.get_route_str() == this.page_name && !this.report_name) {
// only update URL if the route still matches current page.
// do not update if current list is a "saved report".
window.history.replaceState(null, null, this.get_url_with_filters());
}
}


불러오는 중...
취소
저장