diff --git a/htdocs/accountancy/class/accountingjournal.class.php b/htdocs/accountancy/class/accountingjournal.class.php
index 3134dfa95ba..982d6849f6e 100644
--- a/htdocs/accountancy/class/accountingjournal.class.php
+++ b/htdocs/accountancy/class/accountingjournal.class.php
@@ -456,7 +456,7 @@ class AccountingJournal extends CommonObject
$sql .= " SELECT DISTINCT fk_docdet";
$sql .= " FROM " . MAIN_DB_PREFIX . "accounting_bookkeeping";
$sql .= " WHERE doc_type = 'asset'";
- $sql .= ")";
+ $sql .= ") ";
}*/
$sql .= "SELECT ad.fk_asset AS rowid, a.ref AS asset_ref, a.label AS asset_label, a.acquisition_value_ht AS asset_acquisition_value_ht";
diff --git a/htdocs/core/lib/invoice.lib.php b/htdocs/core/lib/invoice.lib.php
index 18ebc363768..b98f17e46ee 100644
--- a/htdocs/core/lib/invoice.lib.php
+++ b/htdocs/core/lib/invoice.lib.php
@@ -71,6 +71,8 @@ function facture_prepare_head($object)
} else {
dol_print_error($db);
}
+ $langs->load("banks");
+
$head[$h][0] = DOL_URL_ROOT.'/compta/facture/prelevement.php?facid='.urlencode($object->id);
$head[$h][1] = $langs->trans('StandingOrders');
if ($nbStandingOrders > 0) {
diff --git a/htdocs/projet/tasks/time.php b/htdocs/projet/tasks/time.php
index b25ad6fa202..78f7c71ce68 100644
--- a/htdocs/projet/tasks/time.php
+++ b/htdocs/projet/tasks/time.php
@@ -1985,7 +1985,7 @@ if (($id > 0 || !empty($ref)) || $projectidforalltimes > 0 || $allprojectforuser
if (!empty($arrayfields['t.note']['checked'])) {
print '
';
if ($action == 'editline' && GETPOST('lineid', 'int') == $task_time->rowid) {
- print '';
+ print '';
} else {
print dol_nl2br($task_time->note);
}
@@ -1994,7 +1994,7 @@ if (($id > 0 || !empty($ref)) || $projectidforalltimes > 0 || $allprojectforuser
$totalarray['nbfield']++;
}
} elseif ($action == 'editline' && GETPOST('lineid', 'int') == $task_time->rowid) {
- print '';
+ print '';
}
// Time spent
@@ -2216,13 +2216,13 @@ if (($id > 0 || !empty($ref)) || $projectidforalltimes > 0 || $allprojectforuser
if (!empty($arrayfields['t.note']['checked'])) {
print ' | ';
if ($action == 'splitline' && GETPOST('lineid', 'int') == $task_time->rowid) {
- print '';
+ print '';
} else {
print dol_nl2br($task_time->note);
}
print ' | ';
} elseif ($action == 'splitline' && GETPOST('lineid', 'int') == $task_time->rowid) {
- print '';
+ print '';
}
// Time spent
@@ -2354,13 +2354,13 @@ if (($id > 0 || !empty($ref)) || $projectidforalltimes > 0 || $allprojectforuser
if (!empty($arrayfields['t.note']['checked'])) {
print '';
if ($action == 'splitline' && GETPOST('lineid', 'int') == $task_time->rowid) {
- print '';
+ print '';
} else {
print dol_nl2br($task_time->note);
}
print ' | ';
} elseif ($action == 'splitline' && GETPOST('lineid', 'int') == $task_time->rowid) {
- print '';
+ print '';
}
// Time spent
diff --git a/htdocs/ticket/class/ticket.class.php b/htdocs/ticket/class/ticket.class.php
index 42ffa662246..4acc9104454 100644
--- a/htdocs/ticket/class/ticket.class.php
+++ b/htdocs/ticket/class/ticket.class.php
@@ -2791,8 +2791,8 @@ class Ticket extends CommonObject
$result = $this->sendTicketMessageByEmail($subject, $message, '', $sendto, $listofpaths, $listofmimes, $listofnames);
if ($result) {
// update last_msg_sent date
- $object->date_last_msg_sent = dol_now();
- $object->update($user);
+ $this->date_last_msg_sent = dol_now();
+ $this->update($user);
}
}
}
@@ -2801,7 +2801,7 @@ class Ticket extends CommonObject
}
// Set status to "answered" if not set yet, but only if internal user
- if ($object->fk_statut < 3 && !$user->socid) {
+ if ($object->status < 3 && !$user->socid) {
$object->setStatut(3);
}
return 1;