diff --git a/htdocs/index.php b/htdocs/index.php index 15967013e8a..70950fb0b26 100644 --- a/htdocs/index.php +++ b/htdocs/index.php @@ -407,10 +407,11 @@ $var=true; //Remove any invalid response //load_board can return an integer if failed or WorkboardResponse if OK -$valid_dashboardlines = array_filter($dashboardlines, function ($board) { - return $board instanceof WorkboardResponse; -}); - +$valid_dashboardlines=array(); +foreach($dashboardlines as $tmp) +{ + if ($tmp instanceof WorkboardResponse) $valid_dashboardlines[] = $tmp; +} $rowspan = count($valid_dashboardlines); foreach($valid_dashboardlines as $board) diff --git a/htdocs/install/mysql/migration/3.6.0-3.7.0.sql b/htdocs/install/mysql/migration/3.6.0-3.7.0.sql index 7a432a1109e..73312c6c613 100755 --- a/htdocs/install/mysql/migration/3.6.0-3.7.0.sql +++ b/htdocs/install/mysql/migration/3.6.0-3.7.0.sql @@ -1165,3 +1165,9 @@ UPDATE llx_bank_url set url = REPLACE( url, 'fiche.php', 'card.php'); -- Add id commandefourndet in llx_commande_fournisseur_dispatch to correct /fourn/commande/dispatch.php display when several times same product in supplier order ALTER TABLE llx_commande_fournisseur_dispatch ADD COLUMN fk_commandefourndet INTEGER NOT NULL DEFAULT 0 AFTER fk_product; + + +-- Not into official 3.7 but must be into migration for 3.7 when migration is done by 3.8 code +ALTER TABLE llx_extrafields ADD COLUMN perms varchar(255) after fieldrequired; +ALTER TABLE llx_extrafields ADD COLUMN list integer DEFAULT 0 after perms; +