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(AdvancedWorkflowExtension) Reload edited record #433

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

Conversation

nyeholt
Copy link
Contributor

@nyeholt nyeholt commented Oct 15, 2020

A workflow can sometimes modify the underlying record being shown to the user. The object reference that the form holds onto is different than the reference that the edit action operates on, meaning any change is not reflected back on the UI when users trigger a workflow action.

Copy link
Collaborator

@emteknetnz emteknetnz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, though a couple of questsions:

a) Would it be worth using Form::MERGE_AS_INTERNAL_VALUE as the merge strategy. I've noticed that it's used by Form::restoreFormState() so possibly it's more appropriate (I'm not familiar with the difference between the two though)
b) I've noticed that AdvancedWorkflowExtension::updateItemEditForm() also may have this same issue - would it be worth fixing this at the same time?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants