In-Portal Issue Tracker - In-Commerce
Viewing Issue Advanced Details
642 [In-Portal CMS] Data Management bug report always 2010-03-26 03:00 2010-06-10 13:44
alex  
alex  
normal  
closed 4.3.9  
fixed  
 
none 5.0.4-B1  
http://groups.google.com/group/in-portal-bugs/browse_thread/thread/a85bd8d46c49764d
0
0000642: Notice about undefined field "File5" on product update
When I update product by hand using this code:

$product =& $this->Application->recallObject('p', null, Array ('skip_autoload' => true));

$products = $application->Conn->Query($product->GetSelectSQL(), $product->IDField);

foreach ($products as $product_id => $product_data) {
    $product->LoadFromHash($product_data);
    $product->Update();
}

then I always get notice about undefined field "File5". This happens because there is same method for creating file and image fields for category item, but different for saving them. Field "PrimaryFile" is created instead if "File5" at the end.
related to 0000614closed  (5.1.0)alex In-Portal CMS Ability to load kDBItem class object from hash 
patch file5_update_problem.patch (1,134) 2010-03-26 03:00
http://tracker.in-portal.org/file_download.php?file_id=407&type=bug
Issue History
2010-06-10 13:44 alex Note Added: 0002421
2010-06-10 13:44 alex Status resolved => closed
2010-05-11 04:39 alex Note Added: 0002192
2010-05-11 04:39 alex Status reviewed and tested => resolved
2010-05-11 04:39 alex Fixed in Version => 5.0.4-B1
2010-05-11 04:39 alex Resolution open => fixed
2010-05-11 04:39 alex Changeset attached 5.0.x r13541
2010-05-11 04:38 alex Summary [In-Commerce] Notice about undefined field "File5" on product update => Notice about undefined field "File5" on product update
2010-04-04 18:24 Dmitry Note Added: 0001780
2010-04-04 18:24 Dmitry Assigned To Dmitry => alex
2010-04-04 18:24 Dmitry Status needs testing => reviewed and tested
2010-03-26 03:02 alex Relationship added related to 0000614
2010-03-26 03:01 alex Assigned To => Dmitry
2010-03-26 03:01 alex Developer => alex
2010-03-26 03:01 alex Status active => needs testing
2010-03-26 03:01 alex Reference => http://groups.google.com/group/in-portal-bugs/browse_thread/thread/a85bd8d46c49764d
2010-03-26 03:00 alex New Issue
2010-03-26 03:00 alex File Added: file5_update_problem.patch

Notes
(0001780)
Dmitry   
2010-04-04 18:24   
Patch tested okay.
(0002192)
alex   
2010-05-11 04:39   
Fix committed to 5.0.x branch. Commit Message:

Fixes 0000642: Notice about undefined field "File5" on product update
(0002421)
alex   
2010-06-10 13:44   
Closing since version 5.0.4 is released.