In-Portal Issue Tracker - In-Portal CMS
|
Viewing Issue Advanced Details |
|
ID:
|
Category:
|
Type:
|
Reproducibility:
|
Date Submitted:
|
Last Update:
|
617 |
[In-Portal CMS] Data Management |
task |
N/A |
2010-03-14 15:57 |
2010-06-10 13:44 |
|
Reporter:
|
alex |
Platform:
|
|
|
Assigned To:
|
alex |
OS:
|
|
|
Priority:
|
normal |
OS Version:
|
|
|
Status:
|
closed |
Product Version:
|
5.0.2 |
|
Product Build:
|
|
Resolution:
|
fixed |
|
|
ETA:
|
none |
Fixed in Version:
|
5.0.4-B1 |
|
Reference:
|
http://groups.google.com/group/in-portal-dev/browse_thread/thread/cd19f490db84d914 |
Change Log Message:
|
|
Estimate Points:
|
0 |
|
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. |
Steps To Reproduce:
|
|
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. |
Relationships | parent of | 0000866 | closed (5.1.1) | alex | Unable to create database record with given id in temp table |
|
Attached Files:
|
temp_id_core.patch (4,648) 2010-05-19 07:02 http://tracker.in-portal.org/file_download.php?file_id=564&type=bug 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 |
Date Modified |
Username |
Field |
Change |
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 |