You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating a new finding, all custom values added for that finding are created in the database with the value "" (empty string). If a value is assigned to that custom field and then deleted using the X (see picture), the value is represented with null in the database.
EDIT: Attempting to use the length conditional ({#retestrisk | length}SHOW IF NOT EMPTY{/retestrisk | length}) instead of equality with empty string results in a parsing error (second picture).
To Reproduce
Create custom fields with 1 value
Add a finding which contains that custom field and save. At this point the database will contain the finding with the custom field text set to ""
Change the value of the custom field to the existing value and save the finding
Remove the value and save the finding. At this point the database will have the custom field text value set to null
Expected behavior
Removing the value should reset the field back to the default empty string. This way if you check if the value is empty in the template it can be done using equality with empty string.
Screenshots
The text was updated successfully, but these errors were encountered:
When creating a new finding, all custom values added for that finding are created in the database with the value "" (empty string). If a value is assigned to that custom field and then deleted using the X (see picture), the value is represented with null in the database.
EDIT: Attempting to use the length conditional ({#retestrisk | length}SHOW IF NOT EMPTY{/retestrisk | length}) instead of equality with empty string results in a parsing error (second picture).
To Reproduce
Expected behavior
Removing the value should reset the field back to the default empty string. This way if you check if the value is empty in the template it can be done using equality with empty string.
Screenshots
The text was updated successfully, but these errors were encountered: