Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: report print view not working #21002

Merged
merged 1 commit into from
May 15, 2023
Merged

Conversation

ankush
Copy link
Member

@ankush ankush commented May 15, 2023

report_view.js:1353 Uncaught TypeError: Cannot read properties of undefined (reading 'label')
    at report_view.js:1353:31
    at Array.map (<anonymous>)
    at frappe.views.ReportView.get_filters_html_for_print (report_view.js:1349:5)
    at report_view.js:1414:23
    at print_utils.js:67:4
    at frappe.ui.Dialog.<anonymous> (messages.js:104:4)
    at HTMLButtonElement.<anonymous> (dialog.js:165:20)
    at HTMLButtonElement.dispatch (jquery.js:5430:27)
    at c1.handle (jquery.js:5234:28)

caused by #20717

partially reverted PR

```
report_view.js:1353 Uncaught TypeError: Cannot read properties of undefined (reading 'label')
    at report_view.js:1353:31
    at Array.map (<anonymous>)
    at frappe.views.ReportView.get_filters_html_for_print (report_view.js:1349:5)
    at report_view.js:1414:23
    at print_utils.js:67:4
    at frappe.ui.Dialog.<anonymous> (messages.js:104:4)
    at HTMLButtonElement.<anonymous> (dialog.js:165:20)
    at HTMLButtonElement.dispatch (jquery.js:5430:27)
    at c1.handle (jquery.js:5234:28)
```
@ankush ankush requested review from a team and phot0n and removed request for a team May 15, 2023 12:23
@ankush ankush merged commit 73276a2 into frappe:develop May 15, 2023
14 of 15 checks passed
@ankush ankush deleted the report_print branch May 15, 2023 12:27
mergify bot pushed a commit that referenced this pull request May 15, 2023
```
report_view.js:1353 Uncaught TypeError: Cannot read properties of undefined (reading 'label')
    at report_view.js:1353:31
    at Array.map (<anonymous>)
    at frappe.views.ReportView.get_filters_html_for_print (report_view.js:1349:5)
    at report_view.js:1414:23
    at print_utils.js:67:4
    at frappe.ui.Dialog.<anonymous> (messages.js:104:4)
    at HTMLButtonElement.<anonymous> (dialog.js:165:20)
    at HTMLButtonElement.dispatch (jquery.js:5430:27)
    at c1.handle (jquery.js:5234:28)
```

[skip ci]

(cherry picked from commit 73276a2)
ankush added a commit that referenced this pull request May 15, 2023
```
report_view.js:1353 Uncaught TypeError: Cannot read properties of undefined (reading 'label')
    at report_view.js:1353:31
    at Array.map (<anonymous>)
    at frappe.views.ReportView.get_filters_html_for_print (report_view.js:1349:5)
    at report_view.js:1414:23
    at print_utils.js:67:4
    at frappe.ui.Dialog.<anonymous> (messages.js:104:4)
    at HTMLButtonElement.<anonymous> (dialog.js:165:20)
    at HTMLButtonElement.dispatch (jquery.js:5430:27)
    at c1.handle (jquery.js:5234:28)
```

[skip ci]

(cherry picked from commit 73276a2)

Co-authored-by: Ankush Menat <ankush@frappe.io>
ankush added a commit that referenced this pull request May 15, 2023
```
report_view.js:1353 Uncaught TypeError: Cannot read properties of undefined (reading 'label')
    at report_view.js:1353:31
    at Array.map (<anonymous>)
    at frappe.views.ReportView.get_filters_html_for_print (report_view.js:1349:5)
    at report_view.js:1414:23
    at print_utils.js:67:4
    at frappe.ui.Dialog.<anonymous> (messages.js:104:4)
    at HTMLButtonElement.<anonymous> (dialog.js:165:20)
    at HTMLButtonElement.dispatch (jquery.js:5430:27)
    at c1.handle (jquery.js:5234:28)
```

[skip ci]

(cherry picked from commit 73276a2)
ankush added a commit that referenced this pull request May 15, 2023
```
report_view.js:1353 Uncaught TypeError: Cannot read properties of undefined (reading 'label')
    at report_view.js:1353:31
    at Array.map (<anonymous>)
    at frappe.views.ReportView.get_filters_html_for_print (report_view.js:1349:5)
    at report_view.js:1414:23
    at print_utils.js:67:4
    at frappe.ui.Dialog.<anonymous> (messages.js:104:4)
    at HTMLButtonElement.<anonymous> (dialog.js:165:20)
    at HTMLButtonElement.dispatch (jquery.js:5430:27)
    at c1.handle (jquery.js:5234:28)
```

[skip ci]

(cherry picked from commit 73276a2)

Co-authored-by: Ankush Menat <ankush@frappe.io>
frappe-pr-bot pushed a commit that referenced this pull request May 16, 2023
## [14.36.1](v14.36.0...v14.36.1) (2023-05-16)

### Bug Fixes

* avoid internal arrays in get_all_docs (backport [#20950](#20950)) ([#20959](#20959)) ([44ea1a3](44ea1a3))
* call make_columns before update_order (backport [#20710](#20710)) ([#20964](#20964)) ([fb01789](fb01789))
* Check permission_type in get_permitted_fieldnames [v14] ([#20905](#20905)) ([707e485](707e485))
* colwidth should be acceptable ([58d0018](58d0018))
* do not consider time while formating date range value ([76f1b2c](76f1b2c))
* don't use default filters for auto-email report ([#20876](#20876)) ([1c97472](1c97472))
* email: get unsub email: use `cstr` instead of `encode` ([#20985](#20985)) ([f44bcf6](f44bcf6))
* filters while exporting or creating new auto email reports for custom reports (backport [#20960](#20960)) ([#21021](#21021)) ([4de6990](4de6990))
* limit RQ job refresh to list view only ([00215d7](00215d7))
* maintain frappe.router.current_router ([7c98b14](7c98b14))
* naming part should be empty if field is empty ([#20978](#20978)) ([#20982](#20982)) ([58a5a0f](58a5a0f))
* process filters for prepared_report while making and getting prepared report missed in ([#19565](#19565)) ([#20981](#20981)) ([b857eab](b857eab))
* Remove unnecessary request from boot ([e9dab33](e9dab33))
* remove unwanted imports ([6b350dd](6b350dd))
* report print view not working ([#21002](#21002)) ([#21004](#21004)) ([4028b5c](4028b5c))
* Request on "/login" instead of "/" ([337b149](337b149))
* Resolve conflicts ([11dfadc](11dfadc))
* unable to access url file from the timeline section ([#20836](#20836)) ([573c6ad](573c6ad))
* use sentinel value for checking existence of key in doc while parsing naming series ([#20994](#20994)) ([#20995](#20995)) ([785e52b](785e52b))
* **UX:** Show alert instead msgprint ([#21016](#21016)) ([#21017](#21017)) ([91f957b](91f957b))
* **UX:** sort modules on user doctype ([#20998](#20998)) ([#20999](#20999)) ([89c00d2](89c00d2))
* validate email on setup wizard (backport [#20979](#20979)) ([#20987](#20987)) ([3bcf450](3bcf450)), closes [#19601](#19601)

### Performance Improvements

* Faster scheduled job deduplication (backport [#20937](#20937)) ([#20949](#20949)) ([60f118e](60f118e))
frappe-pr-bot pushed a commit that referenced this pull request May 16, 2023
## [13.56.3](v13.56.2...v13.56.3) (2023-05-16)

### Bug Fixes

* avoid internal arrays in get_all_docs (backport [#20950](#20950)) ([#20958](#20958)) ([43b051f](43b051f))
* Check permission_type in get_permitted_fieldnames [v13] (backport [#20905](#20905)) ([#20955](#20955)) ([ea6d350](ea6d350))
* don't use default filters for auto-email report ([#20876](#20876)) ([7d7500f](7d7500f))
* filters while exporting or creating new auto email reports for custom reports (backport [#20960](#20960)) ([#21020](#21020)) ([723ec9a](723ec9a))
* report print view not working ([#21002](#21002)) ([#21003](#21003)) ([ca73d72](ca73d72))
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 30, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport version-14-hotfix backport to version 14
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant