Skip to content

[BUG]: Validation on new barcode item breaks the list of items #5021

Closed
@jp524

Description

@jp524

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

If validation fails when adding a new barcode item the dropdown list of items displays "Yes" and "No" options.

Screen.Recording.2025-02-16.at.10.28.30.mov

Expected Behavior

The dropdown list should still show the list of items.

Steps To Reproduce

  1. Log in as org admin
  2. Go to "Inventory" > "Barcode Items"
  3. Click on "New Barcode"
  4. Select an item from the list, but don't fill Quantity or Barcode
  5. Click "Save"

Environment

- OS: MacOS 15.1
- Node: 23.7.0
- npm: 10.9.2

Criteria for Completion

  • The dropdown list should display the list of items after validation occurs
  • Tests to demonstrate bug was fixed

Anything else?

No response

Code of Conduct

  • I've read the Code of Conduct and understand my responsibilities as a member of the Ruby for Good community

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions