Skip to content

Commit

Permalink
Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into 18.0
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Jul 2, 2024
2 parents a7dcd9c + e79f18a commit 29dd8ad
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion htdocs/asset/class/asset.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -863,7 +863,7 @@ public function calculationDepreciation()
// Get fiscal period
require_once DOL_DOCUMENT_ROOT . '/core/lib/date.lib.php';
require_once DOL_DOCUMENT_ROOT . '/core/lib/accounting.lib.php';
$dates = getDefaultDatesForTransfer();
$dates = getCurrentPeriodOfFiscalYear($this->db, $conf, $this->date_start > $this->date_acquisition ? $this->date_start : $this->date_acquisition);
$init_fiscal_period_start = $dates['date_start'];
$init_fiscal_period_end = $dates['date_end'];
if (empty($init_fiscal_period_start) || empty($init_fiscal_period_end)) {
Expand Down
2 changes: 1 addition & 1 deletion htdocs/core/class/commonobject.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -6228,7 +6228,7 @@ public function insertExtraFields($trigger = '', $userused = null)
foreach ($new_array_options as $key => $value) {
$attributeKey = substr($key, 8); // Remove 'options_' prefix
$attributeType = $extrafields->attributes[$this->table_element]['type'][$attributeKey];
$attributeLabel = $extrafields->attributes[$this->table_element]['label'][$attributeKey];
$attributeLabel = $langs->transnoentities($extrafields->attributes[$this->table_element]['label'][$attributeKey]);
$attributeParam = $extrafields->attributes[$this->table_element]['param'][$attributeKey];
$attributeRequired = $extrafields->attributes[$this->table_element]['required'][$attributeKey];
$attributeUnique = $extrafields->attributes[$this->table_element]['unique'][$attributeKey];
Expand Down
4 changes: 2 additions & 2 deletions htdocs/ticket/class/ticket.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -2598,7 +2598,7 @@ public function newMessage($user, &$action, $private = 1, $public_area = 0)
$subject = '['.$label_title.'- ticket #'.$object->track_id.'] '.$langs->trans('TicketNewMessage');

// Message send
$message = $langs->trans('TicketMessageMailIntroText');
$message = getDolGlobalString('TICKET_MESSAGE_MAIL_INTRO', $langs->trans('TicketMessageMailIntroText'));
$message .= '<br><br>';
$messagePost = GETPOST('message', 'restricthtml');
if (!dol_textishtml($messagePost)) {
Expand Down Expand Up @@ -2650,7 +2650,7 @@ public function newMessage($user, &$action, $private = 1, $public_area = 0)
$message_intro = $langs->trans('TicketNotificationEmailBody', "#".$object->id);
$message_signature = GETPOST('mail_signature') ? GETPOST('mail_signature') : getDolGlobalString('TICKET_MESSAGE_MAIL_SIGNATURE');

$message = $langs->trans('TicketMessageMailIntroText');
$message = getDolGlobalString('TICKET_MESSAGE_MAIL_INTRO', $langs->trans('TicketMessageMailIntroText'));
$message .= '<br><br>';
$messagePost = GETPOST('message', 'restricthtml');
if (!dol_textishtml($messagePost)) {
Expand Down

0 comments on commit 29dd8ad

Please sign in to comment.