From 3aaf9dae11928571db0e07f81cf4110f28525bb1 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 27 Feb 2017 00:12:48 +0100 Subject: [PATCH] Fix parameter to cal cron method --- htdocs/compta/facture.php | 5 +++-- htdocs/cron/class/cronjob.class.php | 2 +- htdocs/theme/eldy/style.css.php | 2 ++ htdocs/theme/md/style.css.php | 2 ++ 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php index 66ed06e53e2..6c311224ba0 100644 --- a/htdocs/compta/facture.php +++ b/htdocs/compta/facture.php @@ -1121,8 +1121,9 @@ if (empty($reshook)) 0, // remise_percent 0, // date_start 0, // date_end - 0, $lines[$i]->info_bits, // info_bits - 0, // info_bits + 0, + $lines[$i]->info_bits, // info_bits + 0, 'HT', 0, 0, // product_type diff --git a/htdocs/cron/class/cronjob.class.php b/htdocs/cron/class/cronjob.class.php index e532f1e23e0..59a3d025386 100644 --- a/htdocs/cron/class/cronjob.class.php +++ b/htdocs/cron/class/cronjob.class.php @@ -959,7 +959,7 @@ class Cronjob extends CommonObject // Create Object for the call module $object = new $this->objectname($this->db); - $params_arr = explode(", ",$this->params); + $params_arr = array_map('trim', explode(",",$this->params)); if (!is_array($params_arr)) { $result = call_user_func(array($object, $this->methodename), $this->params); diff --git a/htdocs/theme/eldy/style.css.php b/htdocs/theme/eldy/style.css.php index bdb60c23ee6..fa884d2d74a 100644 --- a/htdocs/theme/eldy/style.css.php +++ b/htdocs/theme/eldy/style.css.php @@ -632,6 +632,8 @@ div.myavailability { .div-table-responsive, .div-table-responsive-no-min { overflow-x: auto; min-height: 0.01%; +} +.div-table-responsive { line-height: 100%; } /* Style used for full page tables with field selector and no content after table (priority before previous for such tables) */ diff --git a/htdocs/theme/md/style.css.php b/htdocs/theme/md/style.css.php index 3a06d1ee256..e8439a7ab8c 100644 --- a/htdocs/theme/md/style.css.php +++ b/htdocs/theme/md/style.css.php @@ -609,6 +609,8 @@ div.myavailability { .div-table-responsive, .div-table-responsive-no-min { overflow-x: auto; min-height: 0.01%; +} +.div-table-responsive { line-height: 100%; } /* Style used for full page tables with field selector and no content after table (priority before previous for such tables) */