From f57e2b1cba41da875e5d0941d6d9637b5bbbb868 Mon Sep 17 00:00:00 2001 From: mMarinetti Date: Tue, 21 Feb 2012 10:03:32 +0000 Subject: [PATCH] [+] classes : New method ->attachProduct($id_product) // Fix #PSTEST-699 // now new attachment are automatically linked to the current product --- .../controllers/products/attachments.tpl | 4 +--- classes/Attachment.php | 21 ++++++++++++++++++- controllers/admin/AdminProductsController.php | 20 +++++++++++++----- 3 files changed, 36 insertions(+), 9 deletions(-) diff --git a/admin-dev/themes/default/template/controllers/products/attachments.tpl b/admin-dev/themes/default/template/controllers/products/attachments.tpl index 17716221e..cdf676abd 100644 --- a/admin-dev/themes/default/template/controllers/products/attachments.tpl +++ b/admin-dev/themes/default/template/controllers/products/attachments.tpl @@ -94,9 +94,7 @@