Fixed
Details
Details
Assignee
Carlos Ruiz
Carlos RuizReporter
Claudemir Todo Bom
Claudemir Todo BomOriginal estimate
Time tracking
No time logged1h remaining
Components
Affects versions
Priority
Created October 26, 2014 at 2:49 PM
Updated February 1, 2017 at 6:30 AM
Resolved December 19, 2016 at 11:28 AM
When importing CSV files, the org.adempiere.impexp.GridTabCSVImporter.preprocessRow() submits the CSV row content to the field.isMandatory() function.
When this code is executed, field have the data of the field on current selected record in the UI, this way, all records isMandatory() will be submited to the logic against the current record and depending on the content of the record being inserted, it will return true for an empty field that should be returned false.
This checking can be safely removed from preprocessing, since when the importer fill the data later, it will be checked again with the correct context.