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

Contribution wizard lost metadata fix #1708

Conversation

SammyIsConfused
Copy link
Contributor

To ensure metadata attributed to hidden pages is not wiped by the
mandatory field check.

Checklist
Description of change

#1678
The lost metadata was caused by the mandatory fields check - it would initialize all pages of a wizard. Since wizards can have visibility scripting, this caused issues with hidden pages initializing when they shouldn't, which wipes their metadata.
Surrounding this initialisation with a check against isViewable() solves the issue whilst retaining mandatory field checking.

To ensure metadata attributed to hidden pages is not wiped by the
mandatory field check.
Copy link
Member

@edalex-ian edalex-ian left a comment

Choose a reason for hiding this comment

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

I'm happy, just a slight tweak.

Co-authored-by: edalex-ian <43919233+edalex-ian@users.noreply.github.com>
Copy link
Contributor

@PenghaiZhang PenghaiZhang 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 to me.

@SammyIsConfused SammyIsConfused merged commit 5fb336d into openequella:develop May 7, 2020
SammyIsConfused added a commit to SammyIsConfused/openEQUELLA that referenced this pull request May 14, 2020
…ost_metadata_due_to_mandatory_fields

Contribution wizard lost metadata fix
SammyIsConfused added a commit to SammyIsConfused/openEQUELLA that referenced this pull request May 14, 2020
…ost_metadata_due_to_mandatory_fields

Contribution wizard lost metadata fix
SammyIsConfused added a commit that referenced this pull request May 15, 2020
…a_due_to_mandatory_fields

Contribution wizard lost metadata fix
SammyIsConfused added a commit that referenced this pull request May 15, 2020
…a_due_to_mandatory_fields

Contribution wizard lost metadata fix
SammyIsConfused added a commit that referenced this pull request May 15, 2020
…a_due_to_mandatory_fields

Contribution wizard lost metadata fix
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.

4 participants