netsuite
netsuite copied to clipboard
record.errors is always non-empty because it contains a "null" error
at least after an upsert maybe after any request it looks like this "errors":[{"type":null,"code":null,"message":null}]
yes , i just had this last week this code used to work @transfer_order.errors.nil? || @transfer_order.errors.empty? vs what I had to change @transfer_order.errors.nil? || @transfer_order.errors.empty? ||@transfer_order.errors.all? { |error| error.message.nil? }