Skip to content

Commit

Permalink
Merge pull request #4703 from specify/issue-4693
Browse files Browse the repository at this point in the history
Always show saveBlocker dialog for unclaimed blockers
  • Loading branch information
melton-jason committed Apr 2, 2024
2 parents fc13b44 + 34c5ee1 commit 968fc20
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -335,10 +335,18 @@ export class BusinessRuleManager<SCHEMA extends AnySchema> {
value: otherValue,
} = otherFieldValues;
const { id, cid, value } = fieldValues[fieldName];
const field = this.resource.specifyTable.getField(fieldName);
if (otherCid !== undefined && cid !== undefined && otherCid === cid)
return true;
if (otherId !== undefined && id !== undefined && otherId === id)
return true;
if (
field !== undefined &&
!(field.isRequired || field.localization.isrequired) &&
(value === undefined || value === null)
) {
return false;
}
return (
otherId === undefined &&
otherCid === undefined &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -277,5 +277,6 @@ export const findUnclaimedBlocker = (
},
]) !== undefined
);
else if (currentListeners.length === 0) return true;
else return false;
});

0 comments on commit 968fc20

Please sign in to comment.