Skip to content

Commit

Permalink
Merge pull request openequella#1708 from SammyIsConfused/bugfix/fix_l…
Browse files Browse the repository at this point in the history
…ost_metadata_due_to_mandatory_fields

Contribution wizard lost metadata fix
  • Loading branch information
SammyIsConfused committed May 14, 2020
1 parent 6caa6f4 commit b9d8fd1
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
import com.tle.web.template.Decorations;
import com.tle.web.template.Decorations.MenuMode;
import com.tle.web.viewurl.ItemSectionInfo;
import com.tle.web.wizard.WebWizardPage;
import com.tle.web.wizard.WizardExceptionHandler;
import com.tle.web.wizard.WizardService;
import com.tle.web.wizard.WizardState;
Expand Down Expand Up @@ -303,8 +304,8 @@ protected WizardSectionInfo getWizardInfo(SectionInfo info) {

void validateMandatoryFields(SectionInfo info, WizardState state) {
PagesSection ps = info.lookupSection(PagesSection.class);
wizardService
.getWizardPages(state)
wizardService.getWizardPages(state).stream()
.filter(WebWizardPage::isViewable)
.forEach(p -> wizardService.ensureInitialisedPage(info, p, ps.getReloadFunction(), true));
}
}

0 comments on commit b9d8fd1

Please sign in to comment.