Fix: add new field "checked"
This commit is contained in:
parent
4c90ff9917
commit
ebfd1846a3
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2010 Regis Houssin <regis.houssin@capnetworks.com>
|
/* Copyright (C) 2010-2018 Regis Houssin <regis.houssin@capnetworks.com>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -268,7 +268,7 @@ class ActionsCardProduct
|
|||||||
|
|
||||||
$this->field_list = array();
|
$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.= " FROM ".MAIN_DB_PREFIX."c_field_list";
|
||||||
$sql.= " WHERE element = '".$this->db->escape($this->fieldListName)."'";
|
$sql.= " WHERE element = '".$this->db->escape($this->fieldListName)."'";
|
||||||
$sql.= " AND entity = ".$conf->entity;
|
$sql.= " AND entity = ".$conf->entity;
|
||||||
@ -293,6 +293,7 @@ class ActionsCardProduct
|
|||||||
$fieldlist["align"] = $obj->align;
|
$fieldlist["align"] = $obj->align;
|
||||||
$fieldlist["sort"] = $obj->sort;
|
$fieldlist["sort"] = $obj->sort;
|
||||||
$fieldlist["search"] = $obj->search;
|
$fieldlist["search"] = $obj->search;
|
||||||
|
$fieldlist["checked"] = $obj->checked;
|
||||||
$fieldlist["enabled"] = verifCond($obj->enabled);
|
$fieldlist["enabled"] = verifCond($obj->enabled);
|
||||||
$fieldlist["order"] = $obj->rang;
|
$fieldlist["order"] = $obj->rang;
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2010 Regis Houssin <regis.houssin@capnetworks.com>
|
/* Copyright (C) 2010-2018 Regis Houssin <regis.houssin@capnetworks.com>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -247,7 +247,7 @@ class ActionsCardService
|
|||||||
|
|
||||||
$this->field_list = array();
|
$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.= " FROM ".MAIN_DB_PREFIX."c_field_list";
|
||||||
$sql.= " WHERE element = '".$this->db->escape($this->fieldListName)."'";
|
$sql.= " WHERE element = '".$this->db->escape($this->fieldListName)."'";
|
||||||
$sql.= " AND entity = ".$conf->entity;
|
$sql.= " AND entity = ".$conf->entity;
|
||||||
@ -272,6 +272,7 @@ class ActionsCardService
|
|||||||
$fieldlist["align"] = $obj->align;
|
$fieldlist["align"] = $obj->align;
|
||||||
$fieldlist["sort"] = $obj->sort;
|
$fieldlist["sort"] = $obj->sort;
|
||||||
$fieldlist["search"] = $obj->search;
|
$fieldlist["search"] = $obj->search;
|
||||||
|
$fieldlist["checked"] = $obj->checked;
|
||||||
$fieldlist["enabled"] = verifCond($obj->enabled);
|
$fieldlist["enabled"] = verifCond($obj->enabled);
|
||||||
$fieldlist["order"] = $obj->rang;
|
$fieldlist["order"] = $obj->rang;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user