Merge pull request #7884 from jfefe/patch-15

FIX : external user cannot be set as internal
This commit is contained in:
Laurent Destailleur 2017-11-29 15:07:18 +01:00 committed by GitHub
commit 359e82fd3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,7 +9,7 @@
* Copyright (C) 2012 Juanjo Menent <jmenent@2byte.es>
* Copyright (C) 2013 Florian Henry <florian.henry@open-concept.pro>
* Copyright (C) 2013-2016 Alexandre Spangaro <aspangaro.dolibarr@gmail.com>
* Copyright (C) 2015 Jean-François Ferry <jfefe@aternatik.fr>
* Copyright (C) 2015-2017 Jean-François Ferry <jfefe@aternatik.fr>
* Copyright (C) 2015 Ari Elbaz (elarifr) <github@accedinfo.com>
* Copyright (C) 2015 Charlie Benke <charlie@patas-monkey.com>
* Copyright (C) 2016 Raphaël Doursenaud <rdoursenaud@gpcsolutions.fr>
@ -415,8 +415,8 @@ if (empty($reshook)) {
}
}
if (!$error && GETPOST('contactid', 'int')) {
$contactid = GETPOST('contactid', 'int');
if (!$error && GETPOSTISSET('contactid')) {
$contactid = GETPOST('contactid', 'int');
if ($contactid > 0) {
$contact = new Contact($db);