When substituting an stock item in a structure, saving results in the an error:
SELECT COUNT(DISTINCT id)FROM mf_structuresoverview WHERE (usercompanyid = '1' AND (stitem_id = '' AND start_date <= '2022-10-25') AND (end_date >= '2022-10-25' OR end_date is NULL)) : ERROR: invalid input syntax for type integer: "" LINE 1: ...rview WHERE (usercompanyid = '1' AND (stitem_id = '' AND sta...
MfstructuresController::testCircularRef not called correctly from MfstructuresController::substitute. First param is structure object and should be structure record id (integer).
When substituting an stock item in a structure, saving results in the an error:
SELECT COUNT(DISTINCT id)FROM mf_structuresoverview WHERE (usercompanyid = '1' AND (stitem_id = '' AND start_date <= '2022-10-25') AND (end_date >= '2022-10-25' OR end_date is NULL)) : ERROR: invalid input syntax for type integer: "" LINE 1: ...rview WHERE (usercompanyid = '1' AND (stitem_id = '' AND sta...