From 95de38e102aef3f21bb060ba9d54c0411247f43c Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 20 Nov 2014 15:32:10 +0100 Subject: [PATCH] =?UTF-8?q?Start=20to=20fix=20[=20bug=20#1711=20]=20Projet?= =?UTF-8?q?=20clotur=C3=A9=20toujours=20visible=20dans=20les=20autres=20mo?= =?UTF-8?q?dule=20pour=20affectation=20but=20it=20is=20a=20too=20important?= =?UTF-8?q?=20change.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/core/class/html.form.class.php | 9 ++++----- htdocs/core/class/html.formprojet.class.php | 11 +++++++++-- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index ba597dd4d57..99529fec524 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -3102,7 +3102,7 @@ class Form * @param string $htmlname Name of select field * @return void */ - function form_project($page, $socid, $selected='', $htmlname='projectid') + function form_project($page, $socid, $selected='', $htmlname='projectid', $discard_closed=0) { global $langs; @@ -3119,8 +3119,7 @@ class Form print ''; print ''; print ''; print ''; print '
'; - //print "$socid,$selected,$htmlname"; - $formproject->select_projects($socid,$selected,$htmlname); + $formproject->select_projects($socid,$selected,$htmlname,20,0,1,$discard_closed); print '
'; @@ -4103,7 +4102,7 @@ class Form if ($value_as_key) $array=array_combine($array, $array); $out=''; - + // Add code for jquery to use multiselect if (empty($conf->dol_use_jmobile) && (! empty($conf->global->MAIN_USE_JQUERY_MULTISELECT) || defined('REQUIRE_JQUERY_MULTISELECT'))) { @@ -4116,7 +4115,7 @@ class Form }); '; } - + $out.='