Merge branch '16.0' of git@github.com:Dolibarr/dolibarr.git into 16.0
This commit is contained in:
commit
99a1eaf67c
@ -456,7 +456,7 @@ class AccountingJournal extends CommonObject
|
|||||||
$sql .= " SELECT DISTINCT fk_docdet";
|
$sql .= " SELECT DISTINCT fk_docdet";
|
||||||
$sql .= " FROM " . MAIN_DB_PREFIX . "accounting_bookkeeping";
|
$sql .= " FROM " . MAIN_DB_PREFIX . "accounting_bookkeeping";
|
||||||
$sql .= " WHERE doc_type = 'asset'";
|
$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";
|
$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";
|
||||||
|
|||||||
@ -1793,7 +1793,7 @@ if (($id > 0 || !empty($ref)) || $projectidforalltimes > 0 || $allprojectforuser
|
|||||||
if (!empty($arrayfields['t.note']['checked'])) {
|
if (!empty($arrayfields['t.note']['checked'])) {
|
||||||
print '<td class="small">';
|
print '<td class="small">';
|
||||||
if ($action == 'editline' && GETPOST('lineid', 'int') == $task_time->rowid) {
|
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 {
|
} else {
|
||||||
print dol_nl2br($task_time->note);
|
print dol_nl2br($task_time->note);
|
||||||
}
|
}
|
||||||
@ -1802,7 +1802,7 @@ if (($id > 0 || !empty($ref)) || $projectidforalltimes > 0 || $allprojectforuser
|
|||||||
$totalarray['nbfield']++;
|
$totalarray['nbfield']++;
|
||||||
}
|
}
|
||||||
} elseif ($action == 'editline' && GETPOST('lineid', 'int') == $task_time->rowid) {
|
} 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
|
// Time spent
|
||||||
@ -2007,13 +2007,13 @@ if (($id > 0 || !empty($ref)) || $projectidforalltimes > 0 || $allprojectforuser
|
|||||||
if (!empty($arrayfields['t.note']['checked'])) {
|
if (!empty($arrayfields['t.note']['checked'])) {
|
||||||
print '<td class="tdoverflowmax300">';
|
print '<td class="tdoverflowmax300">';
|
||||||
if ($action == 'splitline' && GETPOST('lineid', 'int') == $task_time->rowid) {
|
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 {
|
} else {
|
||||||
print dol_nl2br($task_time->note);
|
print dol_nl2br($task_time->note);
|
||||||
}
|
}
|
||||||
print '</td>';
|
print '</td>';
|
||||||
} elseif ($action == 'splitline' && GETPOST('lineid', 'int') == $task_time->rowid) {
|
} 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
|
// Time spent
|
||||||
@ -2145,13 +2145,13 @@ if (($id > 0 || !empty($ref)) || $projectidforalltimes > 0 || $allprojectforuser
|
|||||||
if (!empty($arrayfields['t.note']['checked'])) {
|
if (!empty($arrayfields['t.note']['checked'])) {
|
||||||
print '<td class="small tdoverflowmax300"">';
|
print '<td class="small tdoverflowmax300"">';
|
||||||
if ($action == 'splitline' && GETPOST('lineid', 'int') == $task_time->rowid) {
|
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 {
|
} else {
|
||||||
print dol_nl2br($task_time->note);
|
print dol_nl2br($task_time->note);
|
||||||
}
|
}
|
||||||
print '</td>';
|
print '</td>';
|
||||||
} elseif ($action == 'splitline' && GETPOST('lineid', 'int') == $task_time->rowid) {
|
} 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
|
// Time spent
|
||||||
|
|||||||
@ -2756,8 +2756,8 @@ class Ticket extends CommonObject
|
|||||||
$result = $this->sendTicketMessageByEmail($subject, $message, '', $sendto, $listofpaths, $listofmimes, $listofnames);
|
$result = $this->sendTicketMessageByEmail($subject, $message, '', $sendto, $listofpaths, $listofmimes, $listofnames);
|
||||||
if ($result) {
|
if ($result) {
|
||||||
// update last_msg_sent date
|
// update last_msg_sent date
|
||||||
$object->date_last_msg_sent = dol_now();
|
$this->date_last_msg_sent = dol_now();
|
||||||
$object->update($user);
|
$this->update($user);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2766,7 +2766,7 @@ class Ticket extends CommonObject
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Set status to "answered" if not set yet, but only if internal user
|
// 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);
|
$object->setStatut(3);
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user