From ebfd1846a3473b743cd862c0b36b0f018f85f29b Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Tue, 19 Jun 2018 20:07:00 +0200 Subject: [PATCH] Fix: add new field "checked" --- htdocs/product/canvas/product/actions_card_product.class.php | 5 +++-- htdocs/product/canvas/service/actions_card_service.class.php | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/htdocs/product/canvas/product/actions_card_product.class.php b/htdocs/product/canvas/product/actions_card_product.class.php index 3c0fc4d2b2f..379b80fd1eb 100644 --- a/htdocs/product/canvas/product/actions_card_product.class.php +++ b/htdocs/product/canvas/product/actions_card_product.class.php @@ -1,5 +1,5 @@ +/* Copyright (C) 2010-2018 Regis Houssin * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -268,7 +268,7 @@ class ActionsCardProduct $this->field_list = array(); - $sql = "SELECT rowid, name, alias, title, align, sort, search, enabled, rang"; + $sql = "SELECT rowid, name, alias, title, align, sort, search, checked, enabled, rang"; $sql.= " FROM ".MAIN_DB_PREFIX."c_field_list"; $sql.= " WHERE element = '".$this->db->escape($this->fieldListName)."'"; $sql.= " AND entity = ".$conf->entity; @@ -293,6 +293,7 @@ class ActionsCardProduct $fieldlist["align"] = $obj->align; $fieldlist["sort"] = $obj->sort; $fieldlist["search"] = $obj->search; + $fieldlist["checked"] = $obj->checked; $fieldlist["enabled"] = verifCond($obj->enabled); $fieldlist["order"] = $obj->rang; diff --git a/htdocs/product/canvas/service/actions_card_service.class.php b/htdocs/product/canvas/service/actions_card_service.class.php index af227e54b0b..4758f0de08a 100644 --- a/htdocs/product/canvas/service/actions_card_service.class.php +++ b/htdocs/product/canvas/service/actions_card_service.class.php @@ -1,5 +1,5 @@ +/* Copyright (C) 2010-2018 Regis Houssin * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -247,7 +247,7 @@ class ActionsCardService $this->field_list = array(); - $sql = "SELECT rowid, name, alias, title, align, sort, search, enabled, rang"; + $sql = "SELECT rowid, name, alias, title, align, sort, search, checked, enabled, rang"; $sql.= " FROM ".MAIN_DB_PREFIX."c_field_list"; $sql.= " WHERE element = '".$this->db->escape($this->fieldListName)."'"; $sql.= " AND entity = ".$conf->entity; @@ -272,6 +272,7 @@ class ActionsCardService $fieldlist["align"] = $obj->align; $fieldlist["sort"] = $obj->sort; $fieldlist["search"] = $obj->search; + $fieldlist["checked"] = $obj->checked; $fieldlist["enabled"] = verifCond($obj->enabled); $fieldlist["order"] = $obj->rang;