Uploaded image for project: 'In-Portal CMS'
  1. In-Portal CMS
  2. INP-1315

Reset cached sorting on sorting configuration change

    XMLWordPrintable

    Details

    • Change Log Group:
      Fixed
    • Change Log Message:
      The sorting in grids for user wasn't changed, when website default sorting for that grid was changed.
    • Story Points:
      1
    • Sprint:
      In-Portal's First Sprint, In-Portal's 2nd Sprint, In-Portal's 3rd Sprint, In-Portal's 4th Sprint
    • Copy Issue Key:
    • Patch Instructions:

      Patches must be submitted through Phabricator.

    • Commit Revision:
      16,155

      Description

      Plan:

      1. create getSortingPrefix($system_setting) method in ConfigurationEventHandler
      2. new method would inspect ConfigMapping setting of each unit configs, which prefix is mentioned in Modules database table (replace "adm" with "c" and skip "In-Portal" module)
      3. if system setting name, that is given to the method is matching DefaultSorting1Field or DefaultSorting2Field key values of ConfigMapping array, then return unit config prefix
      4. if no match found then return false
      5. call new method from ConfigurationEventHandler::OnAfterItemUpdate only in case if VariableValue field value was changed
      6. if new method returns unit config prefix, then remove any stored sorting, that might be associated with it from PersistentSessionData table

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alex Alex
                Reporter:
                alex Alex
                Developer:
                Erik Snarski [Intechnic]
                Reviewer:
                Alex
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: