Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Note

When developers override "kDBEventHandler::getPassedId" method and manually call the $this->Application->GetVar method inside, then it's up to them to set the "id_from_request" event parameter.

In-Portal uses object automatic loading technique, that attempts to load an object with ID provided in Web Request (e.g. in URL). For example:

...

  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

Related Tasks

Jira Legacy
serverSystem Jira
serverId513b375f-8291-3313-9d9f-704c39b1f915
keyINP-1526