Changeset View
Changeset View
Standalone View
Standalone View
branches/5.3.x/core/kernel/db/db_event_handler.php
Show First 20 Lines • Show All 1823 Lines • ▼ Show 20 Line(s) | |||||
$temp_handler = $this->Application->recallObject($event->getPrefixSpecial() . '_TempHandler', 'kTempTablesHandler', Array ('parent_event' => $event)); | $temp_handler = $this->Application->recallObject($event->getPrefixSpecial() . '_TempHandler', 'kTempTablesHandler', Array ('parent_event' => $event)); | ||||
$temp_handler->PrepareEdit(); | $temp_handler->PrepareEdit(); | ||||
$event->SetRedirectParam('m_lang', $this->Application->GetDefaultLanguageId()); | $event->SetRedirectParam('m_lang', $this->Application->GetDefaultLanguageId()); | ||||
$event->SetRedirectParam($event->getPrefixSpecial() . '_id', array_shift($ids)); | $event->SetRedirectParam($event->getPrefixSpecial() . '_id', array_shift($ids)); | ||||
$event->SetRedirectParam('pass', 'all,' . $event->getPrefixSpecial()); | $event->SetRedirectParam('pass', 'all,' . $event->getPrefixSpecial()); | ||||
$simultaneous_edit_message = $this->Application->GetVar('_simultaneous_edit_message'); | $pass_through = array('_simultaneous_edit_message', 'edit_field'); | ||||
if ( $simultaneous_edit_message ) { | foreach ( $pass_through as $name ) { | ||||
$event->SetRedirectParam('_simultaneous_edit_message', $simultaneous_edit_message); | $value = $this->Application->GetVar($name); | ||||
if ( strlen($value) ) { | |||||
$event->SetRedirectParam($name, $value); | |||||
} | |||||
} | } | ||||
} | } | ||||
/** | /** | ||||
* Saves content of temp table into live and | * Saves content of temp table into live and | ||||
* redirects to event' default redirect (normally grid template) | * redirects to event' default redirect (normally grid template) | ||||
* | * | ||||
* @param kEvent $event | * @param kEvent $event | ||||
▲ Show 20 Lines • Show All 1612 Lines • Show Last 20 Lines |