In-Portal Issue Tracker

Welcome to the In-Portal Open Source CMS Issue Tracker! This is a central management / tracking tool for all types of tasks / issues / bugs for the In-Portal Project. Before reporting any issues, please make sure to read the Guide into Issue Tracker and How to Properly Test and Report Bugs!

Viewing Issue Simple Details Jump to Notes ] Wiki ]  Related Changesets ] View Advanced ] Issue History ] Print ]
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 Project Name In-Portal CMS
Assigned To alex Developer
Priority normal Resolution fixed Fixed in Version 5.0.4-B1
Status closed Product Version 5.0.2 Target Version 5.0.4
Time EstimateNo estimate
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.
Tags No tags attached.
Reference http://groups.google.com/group/in-portal-dev/browse_thread/thread/cd19f490db84d914
Change Log Message
Estimate Points 0
Attached Files patch file icon temp_id_core.patch [^] (4,648 bytes) 2010-05-19 07:02 [Show Content]
patch file icon temp_id_modules.patch [^] (10,948 bytes) 2010-05-19 07:02 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]
parent of 0000866closed (5.1.1)alex Unable to create database record with given id in temp table 

-  Notes
User avatar (0002283)
Dmitry (manager)
2010-05-23 00:05

Tested good please commit.
User avatar (0002292)
alex (manager)
2010-05-23 04:54

Fix committed to 5.0.x branch. Commit Message:

Fixes 0000617: Automate record creation in temp tables
User avatar (0002407)
alex (manager)
2010-06-10 13:44

Closing since version 5.0.4 is released.

- Related Changesets
In-Portal CMS: 5.0.x r13603
Timestamp: 2010-05-23 04:54:28
Author: alex
Details ] Diff ]
Fixes 0000617: Automate record creation in temp tables
mod - /in-portal/branches/5.0.x/core/kernel/db/db_event_handler.php Diff ] File ]
mod - /in-portal/branches/5.0.x/core/kernel/db/dbitem.php Diff ] File ]
mod - /in-portal/branches/5.0.x/core/kernel/utility/temp_handler.php Diff ] File ]
mod - /in-portal/branches/5.0.x/core/units/helpers/brackets_helper.php Diff ] File ]
mod - /in-portal/branches/5.0.x/core/units/helpers/controls/edit_picker_helper.php Diff ] File ]
mod - /in-portal/branches/5.0.x/core/units/selectors/selectors_event_handler.php Diff ] File ]
Modules :: In-Commerce: 5.0.x r13602
Timestamp: 2010-05-23 04:52:40
Author: alex
Details ] Diff ]
Bug 0000617: Automate record creation in temp tables
mod - /w/in-commerce/branches/5.0.x/units/affiliate_plans_items/affiliate_plans_items_event_handler.php Diff ] File ]
mod - /w/in-commerce/branches/5.0.x/units/coupon_items/coupon_items_event_handler.php Diff ] File ]
mod - /w/in-commerce/branches/5.0.x/units/destinations/dst_event_handler.php Diff ] File ]
mod - /w/in-commerce/branches/5.0.x/units/discount_items/discount_items_event_handler.php Diff ] File ]
mod - /w/in-commerce/branches/5.0.x/units/orders/orders_event_handler.php Diff ] File ]
mod - /w/in-commerce/branches/5.0.x/units/payment_type_currencies/payment_type_currencies_event_handler.php Diff ] File ]
mod - /w/in-commerce/branches/5.0.x/units/pricing/pricing_event_handler.php Diff ] File ]
mod - /w/in-commerce/branches/5.0.x/units/product_option_combinations/product_option_combinations_event_handler.php Diff ] File ]
mod - /w/in-commerce/branches/5.0.x/units/products/products_event_handler.php Diff ] File ]
mod - /w/in-commerce/branches/5.0.x/units/shipping_costs/shipping_costs_event_handler.php Diff ] File ]
mod - /w/in-commerce/branches/5.0.x/units/taxesdestinations/taxes_dst_event_handler.php Diff ] File ]

- 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



Web Development by Intechnic
In-Portal Open Source CMS
In-Portal Open Source CMS
Copyright © 2000 - 2009 MantisBT Group

Powered by Mantis Bugtracker