Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-9187

[AdvancedSearch] Logical operators are wrongly reapplied

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.1.3, 4.2.0
    • 4.2.0
    • Plugin : Search
    • None
    • 4.2 M3

      See attached screenshots. If saving a query like ((a AND b) or C), and you apply it, you got (a AND b AND c).

       

      It is not a probleme of persisting values, as when reapplying them, it is the good object passed :

       

      {
          "type": "OR",
          "expressions": [
              {
                  "type": "AND",
                  "expressions": [
                      {
                          "type": "criterion",
                          "id": "metadata-title-eq",
                          "op": "ne",
                          "rawValue": "1",
                          "value": "1"
                      },
                      {
                          "type": "criterion",
                          "id": "metadata-title-eq",
                          "op": "ne",
                          "rawValue": "2",
                          "value": "2"
                      },
                      {
                          "type": "criterion",
                          "id": "metadata-title-eq",
                          "op": "ne",
                          "rawValue": "3",
                          "value": "3"
                      }
                  ]
              },
              {
                  "type": "AND",
                  "expressions": [
                      {
                          "type": "criterion",
                          "id": "metadata-title-eq",
                          "op": "ne",
                          "rawValue": "4",
                          "value": "4"
                      },
                      {
                          "type": "criterion",
                          "id": "metadata-title-eq",
                          "op": "ne",
                          "rawValue": "5",
                          "value": "5"
                      },
                      {
                          "type": "criterion",
                          "id": "metadata-title-eq",
                          "op": "ne",
                          "rawValue": "6",
                          "value": "6"
                      }
                  ]
              },
              {
                  "type": "AND",
                  "expressions": [
                      {
                          "type": "criterion",
                          "id": "metadata-title-eq",
                          "op": "ne",
                          "rawValue": "7",
                          "value": "7"
                      },
                      {
                          "type": "criterion",
                          "id": "metadata-title-eq",
                          "op": "ne",
                          "rawValue": "8",
                          "value": "8"
                      },
                      {
                          "type": "criterion",
                          "id": "metadata-title-eq",
                          "op": "ne",
                          "rawValue": "9",
                          "value": "9"
                      }
                  ]
              }
          ]
      }

            sprieul Simon Prieul (Inactive)
            sprieul Simon Prieul (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: