Skip to content

Commit

Permalink
Merge pull request #5258 from scottcwilson/fix_back
Browse files Browse the repository at this point in the history
Fix object after edit/preview/back
  • Loading branch information
scottcwilson committed Sep 25, 2022
2 parents 67e3ad1 + b4506cb commit 2631a62
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion admin/includes/modules/product/collect_info.php
Expand Up @@ -56,7 +56,9 @@
$pInfo->updateObjectInfo($product->fields);
} elseif (!empty($_POST)) {
$pInfo->updateObjectInfo($_POST);
$pInfo->products_id = $pInfo->id;
if (isset($_GET['pID'])) {
$pInfo->products_id = (int)$_GET['pID'];
}
$products_name = isset($_POST['products_name']) ? $_POST['products_name'] : '';
$products_description = isset($_POST['products_description']) ? $_POST['products_description'] : '';
$products_url = isset($_POST['products_url']) ? $_POST['products_url'] : '';
Expand Down

0 comments on commit 2631a62

Please sign in to comment.