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

Workflow actions Help button no longer works #21923

Closed
tundebabzy opened this issue Aug 4, 2023 · 0 comments
Closed

Workflow actions Help button no longer works #21923

tundebabzy opened this issue Aug 4, 2023 · 0 comments
Labels

Comments

@tundebabzy
Copy link
Contributor

Description of the issue

The help button no longer works
Screenshot 2023-08-04 at

There is an error in the browser console:

Uncaught (in promise) TypeError: frappe.workflow.get_document_state is not a function

The issue seems to have been introduced by eea57db in which get_document_state was renamed to get_document_state_roles

Context information (for bug reports)

Output of bench version

frappe 14.40.1

Steps to reproduce the issue

  1. In a document for which workflow is enabled, click Actions > Help

Observed result

Nothing happens. There is an error in the web console:

Uncaught (in promise) TypeError: frappe.workflow.get_document_state is not a function

Expected result

Pop up showing workflow transition information.

Stacktrace / full error message

(paste here)

Additional information

OS version / distribution, Frappe install method, etc.

@tundebabzy tundebabzy added the bug label Aug 4, 2023
@ankush ankush closed this as completed in dbc61cc Aug 7, 2023
ankush added a commit that referenced this issue Aug 7, 2023
closes #21923

(cherry picked from commit dbc61cc)
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant