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: 🐛 refresh after setting read only #26439

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

Mutantpenguin
Copy link
Contributor

If no refresh occurs, the form behaves in a strange way such as:

  • fields only become read only after chaning and leaving them
  • clicking "Add Row" in a child table vanishes after clicking it

Frappe itself already has the problem that this method gets called, but doesn't have the desired effect.

Examples:

  • frappe/core/doctype/page/page.js
  • frappe/core/doctype/doctype/doctype.js

In ERPNext some calls to it can be found where refresh_fields() is implicitely called afterwards. I guess to circumvent this problem.

Affected Versions:

  • version-14
  • version-15

Screencast

set_read_only.mp4

If no refresh occurs, the form behaves in a strange way such as:
* fields only become read only after chaning and leaving them
* clicking "Add Row" in a child table vanishes after clicking it
@Mutantpenguin Mutantpenguin requested a review from a team as a code owner May 15, 2024 12:25
@Mutantpenguin Mutantpenguin requested review from ankush and removed request for a team May 15, 2024 12:25
Copy link

stale bot commented Jun 2, 2024

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed within 3 days if no further activity occurs, but it only takes a comment to keep a contribution alive :) Also, even if it is closed, you can always reopen the PR when you're ready. Thank you for contributing.

@stale stale bot added the inactive label Jun 2, 2024
@Mutantpenguin
Copy link
Contributor Author

IMHO this should still be merged

@stale stale bot removed the inactive label Jun 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant