Merge branch '16.0' of git@github.com:Dolibarr/dolibarr.git into develop
This commit is contained in:
commit
77301c50ee
@ -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";
|
||||
|
||||
@ -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) {
|
||||
|
||||
@ -1985,7 +1985,7 @@ if (($id > 0 || !empty($ref)) || $projectidforalltimes > 0 || $allprojectforuser
|
||||
if (!empty($arrayfields['t.note']['checked'])) {
|
||||
print '<td class="small">';
|
||||
if ($action == 'editline' && GETPOST('lineid', 'int') == $task_time->rowid) {
|
||||
print '<textarea name="timespent_note_line" width="95%" rows="'.ROWS_1.'">'.dol_escape_htmltag($task_time->note).'</textarea>';
|
||||
print '<textarea name="timespent_note_line" width="95%" rows="'.ROWS_1.'">'.dol_escape_htmltag($task_time->note, 0, 1).'</textarea>';
|
||||
} 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 '<input type="hidden" name="timespent_note_line" value="'.dol_escape_htmltag($task_time->note).'">';
|
||||
print '<input type="hidden" name="timespent_note_line" value="'.dol_escape_htmltag($task_time->note, 0, 1).'">';
|
||||
}
|
||||
|
||||
// Time spent
|
||||
@ -2216,13 +2216,13 @@ if (($id > 0 || !empty($ref)) || $projectidforalltimes > 0 || $allprojectforuser
|
||||
if (!empty($arrayfields['t.note']['checked'])) {
|
||||
print '<td class="tdoverflowmax300">';
|
||||
if ($action == 'splitline' && GETPOST('lineid', 'int') == $task_time->rowid) {
|
||||
print '<textarea name="timespent_note_line" width="95%" rows="'.ROWS_1.'">'.dol_escape_htmltag($task_time->note).'</textarea>';
|
||||
print '<textarea name="timespent_note_line" width="95%" rows="'.ROWS_1.'">'.dol_escape_htmltag($task_time->note, 0, 1).'</textarea>';
|
||||
} else {
|
||||
print dol_nl2br($task_time->note);
|
||||
}
|
||||
print '</td>';
|
||||
} elseif ($action == 'splitline' && GETPOST('lineid', 'int') == $task_time->rowid) {
|
||||
print '<input type="hidden" name="timespent_note_line" rows="'.ROWS_1.'" value="'.dol_escape_htmltag($task_time->note).'">';
|
||||
print '<input type="hidden" name="timespent_note_line" rows="'.ROWS_1.'" value="'.dol_escape_htmltag($task_time->note, 0, 1).'">';
|
||||
}
|
||||
|
||||
// Time spent
|
||||
@ -2354,13 +2354,13 @@ if (($id > 0 || !empty($ref)) || $projectidforalltimes > 0 || $allprojectforuser
|
||||
if (!empty($arrayfields['t.note']['checked'])) {
|
||||
print '<td class="small tdoverflowmax300"">';
|
||||
if ($action == 'splitline' && GETPOST('lineid', 'int') == $task_time->rowid) {
|
||||
print '<textarea name="timespent_note_line_2" width="95%" rows="'.ROWS_1.'">'.dol_escape_htmltag($task_time->note).'</textarea>';
|
||||
print '<textarea name="timespent_note_line_2" width="95%" rows="'.ROWS_1.'">'.dol_escape_htmltag($task_time->note, 0, 1).'</textarea>';
|
||||
} else {
|
||||
print dol_nl2br($task_time->note);
|
||||
}
|
||||
print '</td>';
|
||||
} elseif ($action == 'splitline' && GETPOST('lineid', 'int') == $task_time->rowid) {
|
||||
print '<input type="hidden" name="timespent_note_line_2" value="'.dol_escape_htmltag($task_time->note).'">';
|
||||
print '<input type="hidden" name="timespent_note_line_2" value="'.dol_escape_htmltag($task_time->note, 0, 1).'">';
|
||||
}
|
||||
|
||||
// Time spent
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user