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

Don't call "kDBEventHandler::checkItemStatus" when ID doesn't come from Web Request

    XMLWordPrintable

    Details

    • Type: Bug Report
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.2.2-B1
    • Component/s: Permissions
    • Labels:
      None
    • Change Log Group:
      Changed
    • Change Log Message:
      The "kDBEventHandler::checkItemStatus" no longer called, when kDBItem object is loaded not from Web Request.
    • Story Points:
      1
    • Copy Issue Key:
    • Patch Instructions:

      Patches must be submitted through Phabricator.

      Description

      Plan:

      1. make "kDBEventHandler::getPassedId" and "kDBEventHandler::StoreSelectedIDs" methods to set "id_from_request" event parameter to the "$event" variable, when ID was obtained from Web Request
      2. in the "kDBEventHandler::OnItemBuild" event, when we're doing object auto-loading replace call to "kDBEventHandler::checkItemStatus" method with "true", when "id_from_request" event parameter is "false"
      3. to reduce human error factor the "kEvent::ID_FROM_REQUEST" constant needs to be created and used instead of using "id_from_request" string

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: