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

FIX : Default values feature is broken on units field on product create #31873

Merged
merged 2 commits into from
Nov 16, 2024

Conversation

jyhere
Copy link
Contributor

@jyhere jyhere commented Nov 15, 2024

This fixes the not working default values feature on units fields (weight_units, size_units, etc) when creating a new product

How to reproduce the bug :

Set a new default value (Setup > Default values/filters/sorting) with the following setup :
relative URL : product/card.php
field : weight_units
value : -6
Go to the new product creation page, Weight should be "mg" but is still "kg".

@eldy eldy merged commit 15d8257 into Dolibarr:develop Nov 16, 2024
6 checks passed
@erikvanberkum
Copy link
Contributor

I am on version 20.0.2 when I do modify and save. I loose the default setting kg it becomes /null in the database and when the screen is reloaded the kg is gone. When i set the value to gram its all working fine just the 0 value is not.
I have applied this patch but no improvement on this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants