Viewing Issue Simple Details |
ID |
Category |
Type |
Reproducibility |
Date Submitted |
Last Update |
0000617 |
[In-Portal CMS] Data Management |
task |
N/A |
2010-03-14 15:57 |
2010-06-10 13:44 |
|
Reporter |
alex |
View Status |
public |
|
Assigned To |
alex |
Priority |
normal |
Resolution |
fixed |
|
Status |
closed |
|
|
|
|
Summary |
0000617: Automate record creation in temp tables |
Description |
I propose we move code
if ($object->IsTempTable()) {
$object->setTempID();
}
into kDBItem::Create method, so when sub-item is being create in temp table, then it's ID is automatically assigned. |
Additional Information |
Also, when using temp tables and you are in OnAfterItemCreate method, then $object->GetID() will return 0 instead of -1/-2/etc., because setTempID() is called after kDBItem::Create() method is executed completely. |