From 077b9f1996645fd623623c0907978f4ef1fb9fb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Sun, 20 Jan 2019 15:23:48 +0100 Subject: [PATCH 1/8] get_codeclient return void https://github.com/frederic34/dolibarr/blob/1ac55b08002cb2a56464d0ab63881e21165f1ae7/htdocs/societe/class/societe.class.php#L2421-L2441 --- htdocs/adherents/subscription.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/htdocs/adherents/subscription.php b/htdocs/adherents/subscription.php index 225cac7c47c..a41438c4097 100644 --- a/htdocs/adherents/subscription.php +++ b/htdocs/adherents/subscription.php @@ -859,8 +859,16 @@ if ($rowid > 0) { $tmpcompany = new Societe($db); $tmpcompany->name=$companyname; - $customercode = $tmpcompany->get_codeclient($tmpcompany,0); - $formquestion[]=array('label' => $langs->trans("CustomerCode"), 'type' => 'text', 'name' => 'customercode', 'value' => $customercode, 'morecss' => 'minwidth300', 'moreattr' => 'maxlength="128"'); + $tmpcompany->get_codeclient($tmpcompany, 0); + $customercode = $tmpcompany->code_client; + $formquestion[]=array( + 'label' => $langs->trans("CustomerCode"), + 'type' => 'text', + 'name' => 'customercode', + 'value' => $customercode, + 'morecss' => 'minwidth300', + 'moreattr' => 'maxlength="128"', + ); } // @TODO Add other extrafields mandatory for thirdparty creation From 213d7d09726967ae35ea9ce5a4e261cbf0def758 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 20 Jan 2019 22:39:01 +0100 Subject: [PATCH 2/8] Travis test --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 6ff8336d072..ea52f17e6fb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -358,7 +358,7 @@ script: - | echo "Unit testing" # Ensure we catch errors. Set this to +e if you want to go to the end to see dolibarr.log file. - set -e + set +e phpunit -d memory_limit=-1 -c test/phpunit/phpunittest.xml test/phpunit/AllTests.php phpunitresult=$? echo "Phpunit return code = $phpunitresult" From 2f4fda059e651d7c561038afc71a3a074096d7e1 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 20 Jan 2019 23:40:20 +0100 Subject: [PATCH 3/8] Show all log lines --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index ea52f17e6fb..68215d258a2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -368,7 +368,7 @@ after_script: - | echo "After script - Output 50 latest lines of dolibarr.log" ls $TRAVIS_BUILD_DIR/documents - tail -n 50 $TRAVIS_BUILD_DIR/documents/dolibarr.log + cat $TRAVIS_BUILD_DIR/documents/dolibarr.log after_success: - | From 2e9e413e17ef4cf84d216af98a65a6e3a6e1e98f Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 21 Jan 2019 01:51:28 +0100 Subject: [PATCH 4/8] Try pgsql fix --- htdocs/install/check.php | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/htdocs/install/check.php b/htdocs/install/check.php index 15806c38a1b..95d93f49863 100644 --- a/htdocs/install/check.php +++ b/htdocs/install/check.php @@ -554,8 +554,8 @@ else if (count($notavailable_choices)) { - print '
'; - print ''; + print '
'; + print ' '.$langs->trans('ShowNotAvailableOptions').'...'; print '
'; print '