diff --git a/htdocs/comm/action/list.php b/htdocs/comm/action/list.php
index 06e6684d99b..dd877e903e4 100644
--- a/htdocs/comm/action/list.php
+++ b/htdocs/comm/action/list.php
@@ -987,10 +987,10 @@ while ($i < $imaxinloop) {
if (!empty($arrayfields['a.datep']['checked'])) {
print '
';
if (empty($obj->fulldayevent)) {
- print dol_print_date($db->jdate($obj->dp), $formatToUse, 'tzuser');
+ print dol_print_date($db->jdate($obj->dp), $formatToUse, 'tzuserrel');
} else {
$tzforfullday = getDolGlobalString('MAIN_STORE_FULL_EVENT_IN_GMT');
- print dol_print_date($db->jdate($obj->dp), $formatToUse, ($tzforfullday ? $tzforfullday : 'tzuser'));
+ print dol_print_date($db->jdate($obj->dp), $formatToUse, ($tzforfullday ? $tzforfullday : 'tzuserrel'));
}
$late = 0;
if ($actionstatic->hasDelay() && $actionstatic->percentage >= 0 && $actionstatic->percentage < 100 ) {
@@ -1006,10 +1006,10 @@ while ($i < $imaxinloop) {
if (!empty($arrayfields['a.datep2']['checked'])) {
print ' | ';
if (empty($obj->fulldayevent)) {
- print dol_print_date($db->jdate($obj->dp2), $formatToUse, 'tzuser');
+ print dol_print_date($db->jdate($obj->dp2), $formatToUse, 'tzuserrel');
} else {
$tzforfullday = getDolGlobalString('MAIN_STORE_FULL_EVENT_IN_GMT');
- print dol_print_date($db->jdate($obj->dp2), $formatToUse, ($tzforfullday ? $tzforfullday : 'tzuser'));
+ print dol_print_date($db->jdate($obj->dp2), $formatToUse, ($tzforfullday ? $tzforfullday : 'tzuserrel'));
}
print ' | ';
}
@@ -1091,11 +1091,11 @@ while ($i < $imaxinloop) {
// Date creation
if (!empty($arrayfields['a.datec']['checked'])) {
// Status/Percent
- print ''.dol_print_date($db->jdate($obj->datec), 'dayhour', 'tzuser').' | ';
+ print ''.dol_print_date($db->jdate($obj->datec), 'dayhour', 'tzuserrel').' | ';
}
// Date update
if (!empty($arrayfields['a.tms']['checked'])) {
- print ''.dol_print_date($db->jdate($obj->datem), 'dayhour', 'tzuser').' | ';
+ print ''.dol_print_date($db->jdate($obj->datem), 'dayhour', 'tzuserrel').' | ';
}
if (!empty($arrayfields['a.percent']['checked'])) {
// Status/Percent
diff --git a/htdocs/compta/facture/list.php b/htdocs/compta/facture/list.php
index cac6229f86b..166f38040c2 100644
--- a/htdocs/compta/facture/list.php
+++ b/htdocs/compta/facture/list.php
@@ -1091,7 +1091,7 @@ if ($resql) {
$param .= '&search_categ_cus='.urlencode($search_categ_cus);
}
if (!empty($search_fac_rec_source_title)) {
- $param .= '&$search_fac_rec_source_title='.urlencode($search_fac_rec_source_title);
+ $param .= '&search_fac_rec_source_title='.urlencode($search_fac_rec_source_title);
}
// Add $param from extra fields
diff --git a/htdocs/contrat/class/contrat.class.php b/htdocs/contrat/class/contrat.class.php
index 8b6d7490eaf..ca52dcc6c91 100644
--- a/htdocs/contrat/class/contrat.class.php
+++ b/htdocs/contrat/class/contrat.class.php
@@ -1058,7 +1058,7 @@ class Contrat extends CommonObject
if (count($exp->linkedObjectsIds['commande']) > 0) {
foreach ($exp->linkedObjectsIds['commande'] as $key => $value) {
$originforcontact = 'commande';
- $originidforcontact = $value->id;
+ $originidforcontact = $value;
break; // We take first one
}
}
diff --git a/htdocs/core/actions_addupdatedelete.inc.php b/htdocs/core/actions_addupdatedelete.inc.php
index 969d590be34..506a1465fdc 100644
--- a/htdocs/core/actions_addupdatedelete.inc.php
+++ b/htdocs/core/actions_addupdatedelete.inc.php
@@ -266,7 +266,7 @@ if ($action == 'update' && !empty($permissiontoadd)) {
$action = 'view';
$urltogo = $backtopage ? str_replace('__ID__', $result, $backtopage) : $backurlforlist;
$urltogo = preg_replace('/--IDFORBACKTOPAGE--/', $object->id, $urltogo); // New method to autoselect project after a New on another form object creation
- if ($urltogo) {
+ if ($urltogo && !$noback) {
header("Location: " . $urltogo);
exit;
}
diff --git a/htdocs/core/class/extrafields.class.php b/htdocs/core/class/extrafields.class.php
index 4f9b0d06f16..625e473e7e6 100644
--- a/htdocs/core/class/extrafields.class.php
+++ b/htdocs/core/class/extrafields.class.php
@@ -60,6 +60,11 @@ class ExtraFields
*/
public $attribute_choice;
+ /**
+ * @var array array to store extrafields definition
+ * @deprecated
+ */
+ public $attribute_list;
/**
* @var array New array to store extrafields definition
diff --git a/htdocs/opensurvey/card.php b/htdocs/opensurvey/card.php
index fdb138eaf76..20985a52647 100644
--- a/htdocs/opensurvey/card.php
+++ b/htdocs/opensurvey/card.php
@@ -404,7 +404,7 @@ print load_fiche_titre($langs->trans("CommentsOfVoters"), '', '');
// Comment list
$comments = $object->getComments();
-if ($comments) {
+if (!empty($comments)) {
foreach ($comments as $comment) {
if ($user->rights->opensurvey->write) {
print ' '.img_picto('', 'delete.png', '', false, 0, 0, '', '', 0).' ';