Forum

Value by default in...
 
Notifications
Retirer tout

Value by default in charge field

2 Posts
2 Utilisateurs
0 Reactions
1,669 Vu
 BILA
(@lsigroup)
Posts: 304
Honorable Member
Début du sujet
 
[#6217]

Hi,

The field in attachment is mandatory to go through next status. But by default, the value of this field is 0, and it seems i'm not able to change that. It means that even if i setup that field as mandatory, each user can go through next status by letting 0 value in the field which is incorrect.

Could you please help ?


 
Posté : 27/08/2019 10:18 am
(@babynus)
Posts: 14952
Membre Admin
 

No, this is not normal.
This comes from PHP 7.1 compatibility.
Before numeric values could be null (nothing, not evben zero)
So setting to zero was like filling the value.
Now, because of PHP 7.1 requirements, numeric values are set by default to zero.
So there is no cange between null and zero.
Possibly we may enforce the control , but we must check that this will not have unexpected side effects

Ticket #4179


 
Posté : 29/08/2019 6:08 pm
Share:
Retour en haut