Attached Files are now deleted when deleting order

This commit is contained in:
Frank Schubert
2021-08-09 17:34:46 +02:00
parent b678cb4611
commit 10a89ecbc4
4 changed files with 19 additions and 3 deletions

View File

@@ -74,7 +74,9 @@ class ProductController extends mfBaseController {
$data = [];
$data['name'] = $r->name;
$data['description'] = $r->description;
$data['sla_id'] = $r->sla_id;
if($r->sla_id) {
$data['sla_id'] = $r->sla_id;
}
$data['external'] = ($r->external == 1) ? "1" : "0";
$data['price_nne'] = ($r->price_nne) ? Layout::commaToDot($r->price_nne) : 0;
$data['price_nbe'] = ($r->price_nbe) ? Layout::commaToDot($r->price_nbe) : 0;