Skip to content

Commit

Permalink
Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into d…
Browse files Browse the repository at this point in the history
…evelop
  • Loading branch information
eldy committed Jan 2, 2025
2 parents a4b27a9 + db0a7d7 commit d49657c
Show file tree
Hide file tree
Showing 12 changed files with 31 additions and 27 deletions.
4 changes: 2 additions & 2 deletions htdocs/admin/tools/export_files.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (C) 2011 Juanjo Menent <jmenent@2byte.es>
* Copyright (C) 2015 Raphaël Doursenaud <rdoursenaud@gpcsolutions.fr>
* Copyright (C) 2021 Regis Houssin <regis.houssin@inodbox.com>
* Copyright (C) 2024 Frédéric France <frederic.france@free.fr>
* Copyright (C) 2024-2025 Frédéric France <frederic.france@free.fr>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -100,7 +100,7 @@
*/

// Increase limit of time. Works only if we are not in safe mode
$ExecTimeLimit = 1800; // 30mn
$ExecTimeLimit = getDolGlobalInt('MAIN_ADMIN_TOOLS_EXPORT_FILES_EXEC_TIME_LIMIT', 1800);; // 30mn
if (!empty($ExecTimeLimit)) {
$err = error_reporting();
error_reporting(0); // Disable all errors
Expand Down
10 changes: 6 additions & 4 deletions htdocs/admin/tools/purge.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/* Copyright (C) 2006-2017 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2006-2012 Regis Houssin <regis.houssin@inodbox.com>
* Copyright (C) 2024 Frédéric France <frederic.france@free.fr>
/* Copyright (C) 2006-2017 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2006-2012 Regis Houssin <regis.houssin@inodbox.com>
* Copyright (C) 2024-2025 Frédéric France <frederic.france@free.fr>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -36,6 +36,8 @@
* @var HookManager $hookmanager
* @var Translate $langs
* @var User $user
*
* @var string $dolibarr_main_data_root
*/

$langs->load("admin");
Expand Down Expand Up @@ -64,7 +66,7 @@

if ($action == 'purge' && !preg_match('/^confirm/i', $choice) && ($choice != 'allfiles' || $confirm == 'yes')) {
// Increase limit of time. Works only if we are not in safe mode
$ExecTimeLimit = 600;
$ExecTimeLimit = getDolGlobalInt('MAIN_ADMIN_TOOLS_PURGE_EXEC_TIME_LIMIT', 600);
if (!empty($ExecTimeLimit)) {
$err = error_reporting();
error_reporting(0); // Disable all errors
Expand Down
8 changes: 4 additions & 4 deletions htdocs/admin/tools/ui/components/event-message.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
$label = 'My action label used for accessibility visually for impaired people';
$user_right = 1;

$html = '<span class="fa fa-comments paddingright"></span>'.$langs->trans('DocSetEventMessageDisplayMessages');;
$html = '<span class="fa fa-comments paddingright"></span>'.$langs->trans('DocSetEventMessageDisplayMessages');
$action_type = 'displayeventmessages';
$url = $_SERVER["PHP_SELF"].'?action=displayeventmessages';
print dolGetButtonAction($label, $html, $action_type, $url, '', $user_right); ?>
Expand Down Expand Up @@ -138,23 +138,23 @@
<?php
$label = 'My action label used for accessibility visually for impaired people';
$user_right = 1;
$html = '<span class="fa fa-comment paddingright"></span>'.$langs->trans('DocSetEventMessageDisplayOKMessage');;
$html = '<span class="fa fa-comment paddingright"></span>'.$langs->trans('DocSetEventMessageDisplayOKMessage');
$action_type = 'displayeventmessageok';
$url = $_SERVER["PHP_SELF"].'?action=displayeventmessageok#seteventmessagesection-contextvariations';
$params['attr']['style'] = 'background: #446548';
print dolGetButtonAction('', $html, $action_type, $url, '', $user_right, $params);

$label = 'My action label used for accessibility visually for impaired people';
$user_right = 1;
$html = '<span class="fa fa-comment paddingright"></span>'.$langs->trans('DocSetEventMessageDisplayWarningMessage');;
$html = '<span class="fa fa-comment paddingright"></span>'.$langs->trans('DocSetEventMessageDisplayWarningMessage');
$action_type = 'displayeventmessagewarning';
$url = $_SERVER["PHP_SELF"].'?action=displayeventmessagewarning#seteventmessagesection-contextvariations';
$params['attr']['style'] = 'background: #a28918';
print dolGetButtonAction($label, $html, $action_type, $url, '', $user_right, $params);

$label = 'My action label used for accessibility visually for impaired people';
$user_right = 1;
$html = '<span class="fa fa-comment paddingright"></span>'.$langs->trans('DocSetEventMessageDisplayErrorMessage');;
$html = '<span class="fa fa-comment paddingright"></span>'.$langs->trans('DocSetEventMessageDisplayErrorMessage');
$action_type = 'displayeventmessageerror';
$url = $_SERVER["PHP_SELF"].'?action=displayeventmessageerror#seteventmessagesection-contextvariations';
$params['attr']['style'] = 'background: #a72947';
Expand Down
2 changes: 1 addition & 1 deletion htdocs/compta/facture/class/facture-rec.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ public function update(User $user, $notrigger = 0)
$sql .= " total_ht = ".((float) $this->total_ht).",";
$sql .= " total_ttc = ".((float) $this->total_ttc).",";
$sql .= " fk_societe_rib = ".(!empty($this->fk_societe_rib) ? ((int) $this->fk_societe_rib) : 'NULL');
;

// TODO Add missing fields
$sql .= " WHERE rowid = ".((int) $this->id);

Expand Down
4 changes: 2 additions & 2 deletions htdocs/contrat/class/api_contracts.class.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/* Copyright (C) 2015 Jean-François Ferry <jfefe@aternatik.fr>
* Copyright (C) 2016 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2018-2020 Frédéric France <frederic.france@netlogic.fr>
* Copyright (C) 2018-2024 Frédéric France <frederic.france@free.fr>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -528,7 +528,7 @@ public function put($id, $request_data = null)
}
if ($field == 'array_options' && is_array($value)) {
foreach ($value as $index => $val) {
$this->contract->array_options[$index] = $this->_checkValForAPI($field, $val, $this->contract);;
$this->contract->array_options[$index] = $this->_checkValForAPI($field, $val, $this->contract);
}
continue;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -796,7 +796,7 @@ public function write_file($object, $outputlangs, $srctemplatepath = '', $hidede

$drawTabHideTop = $hidetop;
$drawTabTop = $tab_top_newpage;
$drawTabBottom = $this->page_hauteur - $heightforfooter;;
$drawTabBottom = $this->page_hauteur - $heightforfooter;
$hideBottom = 0; // TODO understand why it change to 1 or 0 during process

if ($i == $pageposbeforeprintlines) {
Expand Down
2 changes: 1 addition & 1 deletion htdocs/core/modules/facture/doc/pdf_sponge.modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -986,7 +986,7 @@ public function write_file($object, $outputlangs, $srctemplatepath = '', $hidede

$drawTabHideTop = $hidetop;
$drawTabTop = $this->tab_top_newpage;
$drawTabBottom = $this->page_hauteur - $this->heightforfooter;;
$drawTabBottom = $this->page_hauteur - $this->heightforfooter;
$hideBottom = 0; // TODO understand why it change to 1 or 0 during process

if ($i == $pageposbeforeprintlines) {
Expand Down
2 changes: 1 addition & 1 deletion htdocs/core/modules/propale/doc/pdf_cyan.modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -822,7 +822,7 @@ public function write_file($object, $outputlangs, $srctemplatepath = '', $hidede

$drawTabHideTop = $hidetop;
$drawTabTop = $tab_top_newpage;
$drawTabBottom = $this->page_hauteur - $heightforfooter;;
$drawTabBottom = $this->page_hauteur - $heightforfooter;
$hideBottom = 0; // TODO understand why it change to 1 or 0 during process

if ($i == $pageposbeforeprintlines) {
Expand Down
3 changes: 2 additions & 1 deletion htdocs/projet/class/api_tasks.class.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php
/* Copyright (C) 2015 Jean-François Ferry <jfefe@aternatik.fr>
* Copyright (C) 2016 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2024 Frédéric France <frederic.france@free.fr>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -464,7 +465,7 @@ public function put($id, $request_data = null)
}
if ($field == 'array_options' && is_array($value)) {
foreach ($value as $index => $val) {
$this->task->array_options[$index] = $this->_checkValForAPI($field, $val, $this->task);;
$this->task->array_options[$index] = $this->_checkValForAPI($field, $val, $this->task);
}
continue;
}
Expand Down
2 changes: 1 addition & 1 deletion htdocs/salaries/card.php
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@

$triggermodname = 'SALARY_MODIFY';

$result = $object->insertExtraFields(empty($triggermodname) ? '' : $triggermodname, $user);
$result = $object->insertExtraFields($triggermodname, $user);
if ($result > 0) {
setEventMessages($langs->trans('RecordSaved'), null, 'mesgs');
$action = 'view';
Expand Down
5 changes: 3 additions & 2 deletions htdocs/theme/md/info-box.inc.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php
/* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
* Copyright (C) 2024 Frédéric France <frederic.france@free.fr>
*/
if (!defined('ISLOADEDBYSTEELSHEET')) {
die('Must be call by steelsheet');
Expand Down Expand Up @@ -235,8 +236,8 @@
float: left;
text-align: center;
font-size: 45px;
line-height: 94px;; /* must be same height as min-height of .info-box */
height: 94px;; /* must be same height as min-height of .info-box */
line-height: 94px; /* must be same height as min-height of .info-box */
height: 94px; /* must be same height as min-height of .info-box */
width: 86px;
background: var(--colorbacktitle1) !important;
<?php if (isset($conf->global->THEME_SATURATE_RATIO)) { ?>
Expand Down
14 changes: 7 additions & 7 deletions htdocs/webportal/class/webportalinvoice.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/* Copyright (C) 2023-2024 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2023-2024 Lionel Vessiller <lvessiller@easya.solutions>
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
* Copyright (C) 2024 Frédéric France <frederic.france@free.fr>
* Copyright (C) 2024-2025 Frédéric France <frederic.france@free.fr>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -334,14 +334,14 @@ public function getLibStatut($mode = 0, $alreadypaid = -1)
* @param int $paye Status field paye
* @param int $status Id status
* @param int<0,6> $mode 0=long label, 1=short label, 2=Picto + short label, 3=Picto, 4=Picto + long label, 5=short label + picto, 6=long label + picto
* @param int $alreadypaid 0=No payment already done, >0=Some payments were already done
* @param int $type Type invoice. If -1, we use $this->type
* @param int $arg6 @unused-param Unused arg, keep function compatible with parent class
* @return string Label of status
* @param int $alreadypaid 0=No payment already done, >0=Some payments were already done
* @param int $type Type invoice. If -1, we use $this->type
* @param int $nbofopendirectdebitorcredittransfer Nb of open direct debit or credit transfer
* @return string Label of status
*/
public function LibStatut($paye, $status, $mode = 0, $alreadypaid = -1, $type = -1, $arg6 = 0)
public function LibStatut($paye, $status, $mode = 0, $alreadypaid = -1, $type = -1, $nbofopendirectdebitorcredittransfer = 0)
{
// phpcs:enable
return $this->getInvoiceStatic()->LibStatut($paye, $status, $mode, $alreadypaid, $type);
return $this->getInvoiceStatic()->LibStatut($paye, $status, $mode, $alreadypaid, $type, $nbofopendirectdebitorcredittransfer);
}
}

0 comments on commit d49657c

Please sign in to comment.