Changeset View
Changeset View
Standalone View
Standalone View
core/kernel/db/dbitem.php
Show First 20 Lines • Show All 1161 Lines • ▼ Show 20 Line(s) | |||||
} | } | ||||
} | } | ||||
} | } | ||||
} | } | ||||
$this->Application->StoreVar($ses_var_name, serialize($changes)); | $this->Application->StoreVar($ses_var_name, serialize($changes)); | ||||
} | } | ||||
$old_id = $this->GetID(); | |||||
$this->SetID($new_id); | $this->SetID($new_id); | ||||
$pending_actions = $this->getPendingActions($old_id); | |||||
foreach ( array_keys($pending_actions) as $key ) { | |||||
$pending_actions[$key]['id'] = $new_id; | |||||
} | |||||
$this->setPendingActions($pending_actions, $new_id); | |||||
} | } | ||||
alex: # before doing `$this->SetID($new_id);` store `$this->GetID()` (old id) into `$old_id` variable… | |||||
/** | /** | ||||
* Set's modification flag for main prefix of current prefix to true | * Set's modification flag for main prefix of current prefix to true | ||||
* | * | ||||
* @param int $mode | * @param int $mode | ||||
* @access private | * @access private | ||||
*/ | */ | ||||
public function setModifiedFlag($mode = null) | public function setModifiedFlag($mode = null) | ||||
▲ Show 20 Lines • Show All 414 Lines • Show Last 20 Lines |
old id is hardcoded