From fd6477c054e06c13ad614364ea689664f5f2da39 Mon Sep 17 00:00:00 2001 From: abb Date: Mon, 27 Jul 2020 10:52:42 +0100 Subject: [PATCH] fetch product model_pdf field --- htdocs/product/class/product.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/product/class/product.class.php b/htdocs/product/class/product.class.php index 5de1ee5ad99..d617d98b500 100644 --- a/htdocs/product/class/product.class.php +++ b/htdocs/product/class/product.class.php @@ -2033,7 +2033,7 @@ class Product extends CommonObject $sql .= " accountancy_code_buy, accountancy_code_buy_intra, accountancy_code_buy_export,"; $sql .= " accountancy_code_sell, accountancy_code_sell_intra, accountancy_code_sell_export, stock, pmp,"; $sql .= " datec, tms, import_key, entity, desiredstock, tobatch, fk_unit,"; - $sql .= " fk_price_expression, price_autogen"; + $sql .= " fk_price_expression, price_autogen,model_pdf"; $sql .= " FROM ".MAIN_DB_PREFIX."product"; if ($id) { $sql .= " WHERE rowid = ".(int) $id; @@ -2134,6 +2134,7 @@ class Product extends CommonObject $this->fk_price_expression = $obj->fk_price_expression; $this->fk_unit = $obj->fk_unit; $this->price_autogen = $obj->price_autogen; + $this->model_pdf = $obj->model_pdf; $this->db->free($resql);