Skip to content

UIOR-1582 Preserve the "Create inventory" and "Receiving workflow" fields values according to the form value precedence rules - #1891

Merged
usavkov-epam merged 2 commits into
masterfrom
UIOR-1582
Nov 2, 2026
Merged

usavkov-epam merged 2 commits into
masterfrom
UIOR-1582

Conversation

@usavkov-epam

@usavkov-epam usavkov-epam commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Purpose

https://folio-org.atlassian.net/browse/UIOR-1582

The form logic for the "Create inventory" and "Receiving workflow" fields did not consistently preserve values according to the form value precedence rules. In practice, this could lead to user-entered or previously saved values being overwritten by lower-priority defaults or stale state, which caused inconsistent behavior in forms that rely on these fields.

This change ensures those fields keep the correct value based on the established precedence order, improving form consistency and preventing unexpected resets when the form is initialized or updated.

Approach

The fix updates the value initialization logic for the affected fields so it follows the form precedence rules consistently.

The implementation:

  • preserves explicitly selected form values when they are present,
  • retains persisted/saved values when appropriate,
  • falls back to defaults only when no higher-priority value is available.

This keeps the "Create inventory" and "Receiving workflow" fields aligned with expected user intent and form state across interactions.

…elds values according to the form value precedence rules
@usavkov-epam usavkov-epam self-assigned this Oct 30, 2026
@github-actions

github-actions Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Jest Unit Test Results

    1 files  ± 0    318 suites  ±0   7m 0s ⏱️ -8s
1 258 tests +21  1 250 ✅ +21  8 💤 ±0  0 ❌ ±0 
1 266 runs  +21  1 258 ✅ +21  8 💤 ±0  0 ❌ ±0 

Results for commit c7111e7. ± Comparison against base commit 39ac51f.

♻️ This comment has been updated with latest results.

@usavkov-epam
usavkov-epam requested review from a team October 30, 2026 09:30
@sonarqubecloud

sonarqubecloud Bot commented Nov 2, 2026

Copy link
Copy Markdown

@usavkov-epam
usavkov-epam merged commit 9e45748 into master Nov 2, 2026
16 checks passed
@usavkov-epam
usavkov-epam deleted the UIOR-1582 branch November 2, 2026 13:14
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.

2 participants