Viewing Issue Advanced Details Jump to Notes ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000164 [phpBBGarage] Modification minor always 2009-08-07 13:16 2009-08-07 13:24
Reporter Beda View Status public  
Assigned To
Priority normal Resolution open Platform
Status new   OS
Projection none   OS Version
ETA none Fixed in Version Product Version 2.0.B4
  Target Version Product Build
Summary 0000164: Products movement doesn't work
Description When you want disaprove or delete the product and move all modifications with this product to different product the old product will be deleted but if there is already existing modification with deleted product it will remain assigned to old (deleted) product. Error is in both scripts for MCP and ACP.
Steps To Reproduce Create two products (for example A, B) in same category and maker (for example X) . Create modification with product A. Goto ACP -> Garage -> Products -> Maker X -> Choose delte product A -> select Move modifications to B -> Submit

Check modifications of your car -> nothing there! Check DB and there is record in modifications table but with wrong product_id.
Additional Information
Tags No tags attached.
Attached Files

- Relationships

-  Notes
(0000338)
Beda (reporter)
2009-08-07 13:24

HERE IS FIX:

OPEN
acp_garage_product.php

FIND
$product_to_id = request_var('modifications_to_id', 0);

REPLACE WITH
$product_to_id = request_var('product_to_id', 0);

**************

OPEN
mcp_garage.php

FIND
$params = array('product_id' => '', 'action_modifications' => '', 'modifications_to_id' => 0);

REPLACE WITH
$params = array('product_id' => '', 'action_modifications' => '', 'product_to_id' => 0);


FIND
$garage_modification->delete_product($data['product_id'], $data['action_modifications'], $data['modifications_to_id']);

REPLACE WITH
$garage_modification->delete_product($data['product_id'], $data['action_modifications'], $data['product_to_id']);

**************

OPEN
class_garage_modification.php

FIND
else if ($action_make == 'move')

REPLACE WITH
else if ($action_product == 'move')

FIND
if (!$make_to_id)

REPLACE WITH
if (!$product_to_id)

FIND
$this->move_product_content($product_id, $to_id);

REPLACE WITH
$this->move_product_content($product_id, $product_to_id);

- Issue History
Date Modified Username Field Change
2009-08-07 13:16 Beda New Issue
2009-08-07 13:24 Beda Note Added: 0000338
cron