From 7460c74e809d7185a4737cf174a215ec5552b991 Mon Sep 17 00:00:00 2001 From: Karl Cordes Date: Sun, 9 Jun 2013 16:39:36 +1000 Subject: [PATCH] Added notes and product codes to clone product --- app/controllers/products_controller.php | 1 + app/views/products/clone_product.ctp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/app/controllers/products_controller.php b/app/controllers/products_controller.php index a8237c60..2f592973 100755 --- a/app/controllers/products_controller.php +++ b/app/controllers/products_controller.php @@ -83,6 +83,7 @@ class ProductsController extends AppController { $this->data['Product']['title'] = $product['Product']['title']; $this->data['Product']['description'] = $product['Product']['description']; $this->data['Product']['item_code'] = $product['Product']['item_code']; + $this->data['Product']['notes'] = $product['Product']['notes']; $this->data['Product']['item_description'] = $product['Product']['item_description']; diff --git a/app/views/products/clone_product.ctp b/app/views/products/clone_product.ctp index 24748d84..b5d87867 100755 --- a/app/views/products/clone_product.ctp +++ b/app/views/products/clone_product.ctp @@ -18,6 +18,8 @@ $('.ckeditor').ckeditor(config); echo $form->input('description', array('id' => 'description', 'class'=>'ckeditor')); echo $form->input('notes'); + echo $form->input('item_code'); + echo $form->input('item_description'); echo $html->image('calculator.png');