Skip to content

Commit

Permalink
Update Kitodo/src/main/java/org/kitodo/production/forms/dataeditor/Me…
Browse files Browse the repository at this point in the history
…diaPartialForm.java

Co-authored-by: Arved Solth <[email protected]>
  • Loading branch information
markusweigelt and solth authored Jan 25, 2024
1 parent 792b330 commit 7fd4e3e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ protected boolean valid() {
}
if (!isEditable() || (isEditable() && !mediaPartialDivision.getValue().getBegin().equals(getBegin()))) {
boolean exists = getMediaSelection().getValue().getChildren().stream().anyMatch(
logicalDivision -> logicalDivision.getViews().size() > 0 && logicalDivision.getViews().getFirst()
logicalDivision -> !logicalDivision.getViews().isEmpty() && logicalDivision.getViews().getFirst()
.getPhysicalDivision().getMediaPartial().getBegin().equals(getBegin()));
if (exists) {
validationError = "mediaPartialFormStartExists";
Expand Down

0 comments on commit 7fd4e3e

Please sign in to comment.