Skip to content

Commit

Permalink
Fix: use "visible" field name instead "checked"
Browse files Browse the repository at this point in the history
  • Loading branch information
hregis committed Jun 30, 2018
1 parent 96faf7c commit 718cbce
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion htdocs/install/mysql/migration/7.0.0-8.0.0.sql
Expand Up @@ -102,7 +102,7 @@ ALTER TABLE llx_c_type_fees ADD COLUMN type integer DEFAULT 0;

ALTER TABLE llx_c_ecotaxe CHANGE COLUMN libelle label varchar(255);

ALTER TABLE llx_c_field_list ADD COLUMN checked tinyint DEFAULT 0 NOT NULL AFTER search;
ALTER TABLE llx_c_field_list ADD COLUMN visible tinyint DEFAULT 1 NOT NULL AFTER search;

ALTER TABLE llx_product_fournisseur_price DROP COLUMN unitcharges;

Expand Down
2 changes: 1 addition & 1 deletion htdocs/install/mysql/tables/llx_c_field_list.sql
Expand Up @@ -33,7 +33,7 @@ create table llx_c_field_list
align varchar(6) DEFAULT 'left', -- align (left,center,right)
sort tinyint DEFAULT 1 NOT NULL, -- add sort field
search tinyint DEFAULT 0 NOT NULL, -- add search field
checked tinyint DEFAULT 0 NOT NULL, -- show or hide field by default
visible tinyint DEFAULT 1 NOT NULL, -- visibility of field. 0=Never visible, 1=Visible on list and forms, 2=Visible on list only
enabled varchar(255) DEFAULT 1, -- Condition to show or hide
rang integer DEFAULT 0

Expand Down
4 changes: 2 additions & 2 deletions htdocs/product/canvas/product/actions_card_product.class.php
Expand Up @@ -253,7 +253,7 @@ private function getFieldList()

$this->field_list = array();

$sql = "SELECT rowid, name, alias, title, align, sort, search, checked, enabled, rang";
$sql = "SELECT rowid, name, alias, title, align, sort, search, visible, enabled, rang";
$sql.= " FROM ".MAIN_DB_PREFIX."c_field_list";
$sql.= " WHERE element = '".$this->db->escape($this->fieldListName)."'";
$sql.= " AND entity = ".$conf->entity;
Expand All @@ -278,7 +278,7 @@ private function getFieldList()
$fieldlist["align"] = $obj->align;
$fieldlist["sort"] = $obj->sort;
$fieldlist["search"] = $obj->search;
$fieldlist["checked"] = $obj->checked;
$fieldlist["visible"] = $obj->visible;
$fieldlist["enabled"] = verifCond($obj->enabled);
$fieldlist["order"] = $obj->rang;

Expand Down
4 changes: 2 additions & 2 deletions htdocs/product/canvas/service/actions_card_service.class.php
Expand Up @@ -232,7 +232,7 @@ private function getFieldList()

$this->field_list = array();

$sql = "SELECT rowid, name, alias, title, align, sort, search, checked, enabled, rang";
$sql = "SELECT rowid, name, alias, title, align, sort, search, visible, enabled, rang";
$sql.= " FROM ".MAIN_DB_PREFIX."c_field_list";
$sql.= " WHERE element = '".$this->db->escape($this->fieldListName)."'";
$sql.= " AND entity = ".$conf->entity;
Expand All @@ -257,7 +257,7 @@ private function getFieldList()
$fieldlist["align"] = $obj->align;
$fieldlist["sort"] = $obj->sort;
$fieldlist["search"] = $obj->search;
$fieldlist["checked"] = $obj->checked;
$fieldlist["visible"] = $obj->visible;
$fieldlist["enabled"] = verifCond($obj->enabled);
$fieldlist["order"] = $obj->rang;

Expand Down

0 comments on commit 718cbce

Please sign in to comment.