In-Portal Issue Tracker - In-Portal CMS
Viewing Issue Advanced Details
617 [In-Portal CMS] Data Management task N/A 2010-03-14 15:57 2010-06-10 13:44
alex  
alex  
normal  
closed 5.0.2  
fixed  
 
none 5.0.4-B1  
http://groups.google.com/group/in-portal-dev/browse_thread/thread/cd19f490db84d914
0
0000617: Automate record creation in temp tables
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.
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.
parent of 0000866closed  (5.1.1)alex Unable to create database record with given id in temp table 
patch temp_id_core.patch (4,648) 2010-05-19 07:02
http://tracker.in-portal.org/file_download.php?file_id=564&type=bug
patch temp_id_modules.patch (10,948) 2010-05-19 07:02
http://tracker.in-portal.org/file_download.php?file_id=565&type=bug
Issue History
2010-09-17 02:42 alex Relationship added parent of 0000866
2010-06-10 13:44 alex Note Added: 0002407
2010-06-10 13:44 alex Status resolved => closed
2010-05-23 04:54 alex Changeset attached 5.0.x r13603
2010-05-23 04:54 alex Note Added: 0002292
2010-05-23 04:54 alex Status reviewed and tested => resolved
2010-05-23 04:54 alex Fixed in Version => 5.0.4-B1
2010-05-23 04:54 alex Resolution open => fixed
2010-05-23 04:52 alex Changeset attached 5.0.x r13602
2010-05-23 04:51 alex Changeset attached 5.0.x r13601
2010-05-23 00:05 Dmitry Note Added: 0002283
2010-05-23 00:05 Dmitry Assigned To !COMMUNITY => alex
2010-05-23 00:05 Dmitry Status needs testing => reviewed and tested
2010-05-19 07:02 alex Assigned To => !COMMUNITY
2010-05-19 07:02 alex Developer => alex
2010-05-19 07:02 alex Status active => needs testing
2010-05-19 07:02 alex File Added: temp_id_modules.patch
2010-05-19 07:02 alex File Added: temp_id_core.patch
2010-03-14 15:57 alex New Issue
2010-03-14 15:57 alex Reference => http://groups.google.com/group/in-portal-dev/browse_thread/thread/cd19f490db84d914

Notes
(0002283)
Dmitry   
2010-05-23 00:05   
Tested good please commit.
(0002292)
alex   
2010-05-23 04:54   
Fix committed to 5.0.x branch. Commit Message:

Fixes 0000617: Automate record creation in temp tables
(0002407)
alex   
2010-06-10 13:44   
Closing since version 5.0.4 is released.