Uploaded image for project: 'PrestaShop 1.7'
  1. PrestaShop 1.7
  2. BOOM-5581

webservice low_stock_alert default value

    Details

    • Tests & Expected Results:
      N/A
    • Documentation Change:
      N/A

      Description

      When saving product and not specifying low_stock_alert there is an error:

      <error>
      <code><![CDATA[97]]></code>
      <message><![CDATA[[SQL Error] Column 'low_stock_alert' cannot be null. From DbCore->insert() Query was : INSERT INTO `ps_product` ...</message>
      </error>
      <error>
      <code><![CDATA[97]]></code>
      <message><![CDATA[[SQL Error] Column 'low_stock_alert' cannot be null. From ObjectModelCore->add() Query was : INSERT INTO `ps_product` ...</message>
      </error>
      <error>
      <code><![CDATA[46]]></code>
      <message><![CDATA[Unable to save resource]]></message>
      </error>
      

      There is probably some bug with formating this new field. When I specify in the XML <low_stock_alert>0</low_stock_alert> product saves OK.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jan-kratochvil Jan Kratochvíl
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: