Closed MacarenaReina closed 4 years ago
Works on gitdeveloper.
I have just test it on gitdeveloper and it does not work. If you reload the view disappear the last zero.
I think it's a problem with the use of trim in some function, because it removes final zeros too.
π bug report
βοΈ Describe the bug
I create a new module (when you create a new module it creates a mandatory text field too). When I edit the default field of a record from 0.4 to 0.40 it does not detect changes so it does not save the new value (0.40).
π₯ How to trigger the error
Steps to reproduce the behavior:
I think the problem is there because
$this->getPreviousValue()
is empty: https://github.com/YetiForceCompany/YetiForceCRM/blob/acc6528abd051703737e0fc94e071058975f9916/modules/Vtiger/models/Record.php#L462π Actual Behavior
Does not save the new value
π Expected Behavior
Save the new value because in my case we need to write on this field text or numbers but in the case of numbers it can be with zeros at the end.
π· Testing
π· Screenshot of configuration
π PHP/Apache/Nginx/Browser/CRM Logs
π Your Environment
β Additional context
Add any other context about the problem here.
βοΈ Inform the community if you solve the problem