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

[webservice] Strange behavior with combination update

    Details

    • Type: Bug
    • Status: To Do
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.7.2.4
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Epic Link:
    • How to reproduce the issue ?:
      You can use my files, comment / uncomment line 14 and 15 in order to play with removed nodes.
    • Tests & Expected Results:
      N/A
    • Documentation Change:
      N/A

      Description

      Webservice hasn't the same rule for each field into xml data when i update data.

      For example with combinations.

      Try to update one of them.

      Into resent XML data, you can set a xml node empty, in order to delete data.

      Into resent XML data, you can remove a xml node, in order to not update data.

      That's what Prestashop's documentation explains.

       

      But it's not always right, and some field are buggy.

      Try to remove associations->images node, you'll delete data

      Try to remove associations->product_option_values, you don't update them, you still get it after update.

       

      I tested it with 1.6.1.16, and 1.7.2.4.

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                maxime Maxime
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: