Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUU] Unit field is out of sync with the popout #12570

Open
filipefurtad0 opened this issue Jun 13, 2024 · 1 comment · May be fixed by #12602
Open

[BUU] Unit field is out of sync with the popout #12570

filipefurtad0 opened this issue Jun 13, 2024 · 1 comment · May be fixed by #12602
Assignees
Labels
bug-s3 The bug is stopping a critical or non-critical feature but there is a usable workaround.

Comments

@filipefurtad0
Copy link
Contributor

Description

Follow-up from #12553.

Unit field is out of sync with the popout and does not allow saving changes, even though there is a default value displayed to the user.

Expected Behavior

The Unit value field should reflect the actual unit value of a variant; this value should be displayed as the pre-defined value, and it should not need to be changed, to be able to save changes.

Actual Behaviour

The Unit value field does not reflect the actual unit value of a variant; another value is displayed as the pre-defined value, but saving changes is not possible.

Steps to Reproduce

  1. Choose a product which has a unit of Weight (kg) -> 1.
  2. Create a new variant on this product by clicking the + sign.
  3. Fill in all fields but do not change the Unit field
  4. Check which value is pre-defined on the Unit pop-out - in this case it should be 0.001, which is not correct. Should be 1. Click Save changes
  5. Notice you get an error: although 0.001 is pre-filled, this value is not considered by the UI.

Animated Gif/Screenshot

When creating a new Weight (1 kg) variant:

image

The pre-filled value is 0.001; Clicking Save changes:

image

Workaround

Explicitly type the value you wish for the Unit field.

Severity

bug-s3: a feature is broken but there is a workaround

Your Environment

  • Version used: v4.4.50
  • Browser name and version: Firefox 126
  • Operating System and version (desktop or mobile): Ubuntu 22.04

Possible Fix

@filipefurtad0 filipefurtad0 added the bug-s3 The bug is stopping a critical or non-critical feature but there is a usable workaround. label Jun 13, 2024
@chahmedejaz chahmedejaz self-assigned this Jun 21, 2024
@chahmedejaz
Copy link
Collaborator

Update:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-s3 The bug is stopping a critical or non-critical feature but there is a usable workaround.
Projects
Status: In Progress ⚙
Development

Successfully merging a pull request may close this issue.

3 participants