@@ -578,7 +578,7 @@ class DocumentController extends BackendController | |||
if ($document) { | |||
$ordersArray = []; | |||
$productsArray = $productModule->findProducts(false); | |||
$productsArray = $productModule->getRepository()->findProducts(true); | |||
foreach ($document->orders as $order) { | |||
$orderModule->initOrder($order); |
@@ -343,7 +343,7 @@ class ProductController extends BackendController | |||
$orderArray = json_decode(stripslashes($array)); | |||
foreach ($orderArray as $id => $order) { | |||
$product = $this->findModel($id); | |||
$product = $this->findModel((int) $id); | |||
$product->order = $order; | |||
$product->save(); | |||
} |