diff --git a/htdocs/admin/system/filecheck.php b/htdocs/admin/system/filecheck.php
index 7d8233cdc0a..36904cba63d 100644
--- a/htdocs/admin/system/filecheck.php
+++ b/htdocs/admin/system/filecheck.php
@@ -100,11 +100,11 @@ if (empty($xmlremote)) {
}
if ($xmlremote && !preg_match('/^https?:\/\//', $xmlremote)) {
$langs->load("errors");
- setEventMessages($langs->trans("ErrorURLMustStartWithHttp", $xmlremote), '', 'errors');
+ setEventMessages($langs->trans("ErrorURLMustStartWithHttp", $xmlremote), null, 'errors');
$error++;
} elseif ($xmlremote && !preg_match('/\.xml$/', $xmlremote)) {
$langs->load("errors");
- setEventMessages($langs->trans("ErrorURLMustEndWith", $xmlremote, '.xml'), '', 'errors');
+ setEventMessages($langs->trans("ErrorURLMustEndWith", $xmlremote, '.xml'), null, 'errors');
$error++;
}
diff --git a/htdocs/comm/propal/card.php b/htdocs/comm/propal/card.php
index 07729fd55de..a21e227d822 100644
--- a/htdocs/comm/propal/card.php
+++ b/htdocs/comm/propal/card.php
@@ -2776,7 +2776,7 @@ if ($action == 'create') {
}
if (!empty($object->lines)) {
- $ret = $object->printObjectLines($action, $mysoc, $soc, $lineid, 1);
+ $ret = $object->printObjectLines($action, $mysoc, $object->thirdparty, $lineid, 1);
}
// Form to add new line
diff --git a/htdocs/compta/facture/card.php b/htdocs/compta/facture/card.php
index 9d221411d9c..e28e5427c0b 100644
--- a/htdocs/compta/facture/card.php
+++ b/htdocs/compta/facture/card.php
@@ -2763,7 +2763,7 @@ if (empty($reshook)) {
}
if (!$errors) {
- setEventMessages($langs->trans('Updated'), '', 'mesgs');
+ setEventMessages($langs->trans('Updated'), null, 'mesgs');
header("Location: ".$_SERVER['PHP_SELF']."?id=".$id);
} else {
setEventMessages($langs->trans('ErrorOutingSituationInvoiceCreditNote'), array(), 'errors');
diff --git a/htdocs/core/class/extrafields.class.php b/htdocs/core/class/extrafields.class.php
index e4152d31189..b0bc0e55c06 100644
--- a/htdocs/core/class/extrafields.class.php
+++ b/htdocs/core/class/extrafields.class.php
@@ -2037,13 +2037,13 @@ class ExtraFields
/**
* Fill array_options property of object by extrafields value (using for data sent by forms)
*
- * @param array $extralabels Deprecated (old $array of extrafields, now set this to null)
- * @param object $object Object
- * @param string $onlykey Only some keys are filled:
- * 'string' => When we make update of only one extrafield ($action = 'update_extras'), calling page can set this to avoid to have other extrafields being reset.
- * '@GETPOSTISSET' => When we make update of several extrafields ($action = 'update'), calling page can set this to avoid to have fields not into POST being reset.
- * @param int $todefaultifmissing 1=Set value to the default value in database if value is mandatory and missing
- * @return int 1 if array_options set, 0 if no value, -1 if error (field required missing for example)
+ * @param array|null $extralabels Deprecated (old $array of extrafields, now set this to null)
+ * @param object $object Object
+ * @param string $onlykey Only some keys are filled:
+ * 'string' => When we make update of only one extrafield ($action = 'update_extras'), calling page can set this to avoid to have other extrafields being reset.
+ * '@GETPOSTISSET' => When we make update of several extrafields ($action = 'update'), calling page can set this to avoid to have fields not into POST being reset.
+ * @param int $todefaultifmissing 1=Set value to the default value in database if value is mandatory and missing
+ * @return int 1 if array_options set, 0 if no value, -1 if error (field required missing for example)
*/
public function setOptionalsFromPost($extralabels, &$object, $onlykey = '', $todefaultifmissing = 0)
{
diff --git a/htdocs/core/class/html.formticket.class.php b/htdocs/core/class/html.formticket.class.php
index 82b5f9840bf..e885790e111 100644
--- a/htdocs/core/class/html.formticket.class.php
+++ b/htdocs/core/class/html.formticket.class.php
@@ -1022,7 +1022,7 @@ class FormTicket
}
$stringtoprint .= '';
if (empty($tabscript[$groupcodefather])) {
- $tabscript[$groupcodefather] = 'if ($("#'.$htmlname.($levelid > 1 ?'_child_'.$levelid-1:'').'").val() == "'.dol_escape_js($groupcodefather).'"){
+ $tabscript[$groupcodefather] = 'if ($("#'.$htmlname.($levelid > 1 ?'_child_'.($levelid-1):'').'").val() == "'.dol_escape_js($groupcodefather).'"){
$(".'.$htmlname.'_'.dol_escape_htmltag($fatherid).'_child_'.$levelid.'").show()
console.log("We show childs tickets of '.$groupcodefather.' group ticket")
}else{
@@ -1040,7 +1040,7 @@ class FormTicket
$stringtoprint .='