Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0055325Openbravo ERPA. Platformpublic2024-04-25 16:372024-05-08 16:07
lorenzofidalgo 
Triage Platform Base 
normalminoralways
scheduledopen 
5
 
PR24Q2 
Core
No
0055325: [24Q2] Error "null value in column "name" violates not-null constraint" is shown to the user instead of being user friendly
Inside "Discounts and Promotions" window, if the backend user edits the "Name" field and inserts blanks and tries to save the record, the following non-friendly message is shown:
Saving failed. ERROR: null value in column "name" violates not-null constraint Detail: Failing row contains [...].
0-Login backoffice as Openbravo.
1-Go to "Discounts and Promotions" window.
2-Create a new record in form view with the following data:
--
Discount/Promotion Type *: Buy X pay Y of same product
Name *: Test
Starting Date: 25-04-2024
X Units: 10
Y Units: 9
--
Save the record.
3-Focus the Name input field and remove its value. Press spacebar to insert a blank. Click Save button. DEFECT: A non-friendly message is shown to the backoffice user.
No tags attached.
png NullValue.png (101,415) 2024-04-25 16:42
https://issues.openbravo.com/file_download.php?file_id=19717&type=bug
png
Issue History
2024-04-25 16:37lorenzofidalgoNew Issue
2024-04-25 16:37lorenzofidalgoAssigned To => Triage Platform Base
2024-04-25 16:37lorenzofidalgoFile Added: NullValue.png
2024-04-25 16:37lorenzofidalgoModules => Core
2024-04-25 16:37lorenzofidalgoTriggers an Emergency Pack => No
2024-04-25 16:38lorenzofidalgoSummaryError stating "null value in column "name" violates not-null constraint" is shown to the user instead of being user friendly => [24Q2] Error "null value in column "name" violates not-null constraint" is shown to the user instead of being user friendly
2024-04-25 16:40lorenzofidalgoDescription Updatedbug_revision_view_page.php?rev_id=27883#r27883
2024-04-25 16:42lorenzofidalgoFile Deleted: NullValue.png
2024-04-25 16:42lorenzofidalgoFile Added: NullValue.png
2024-05-06 17:10lorenzofidalgoTarget Version => PR24Q2
2024-05-08 13:56hgbotNote Added: 0164328
2024-05-08 16:07AugustoMauchStatusnew => scheduled

Notes
(0164328)
hgbot   
2024-05-08 13:56   
Merge Request created: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/1230 [^]