Skip to content

Commit a96bfe3

Browse files
committed
Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop
2 parents a794881 + 857d92d commit a96bfe3

File tree

4 files changed

+24
-5
lines changed

4 files changed

+24
-5
lines changed

htdocs/expedition/class/expedition.class.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2949,6 +2949,11 @@ public function setClosed()
29492949
return 0;
29502950
}
29512951

2952+
// We need to validate shipping before closing it
2953+
if ($this->status == self::STATUS_DRAFT) {
2954+
$this->valid($user);
2955+
}
2956+
29522957
$this->db->begin();
29532958

29542959
$sql = "UPDATE ".MAIN_DB_PREFIX."expedition SET fk_statut = ".self::STATUS_CLOSED;

htdocs/expensereport/class/expensereportstats.class.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
/* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
33
* Copyright (c) 2005-2008 Laurent Destailleur <eldy@users.sourceforge.net>
44
* Copyright (C) 2005-2009 Regis Houssin <regis.houssin@inodbox.com>
5-
* Copyright (C) 2024 Frédéric France <frederic.france@free.fr>
6-
* Copyright (C) 2024-2025 MDW <mdeweerd@users.noreply.github.com>
5+
* Copyright (C) 2024 Frédéric France <frederic.france@free.fr>
6+
* Copyright (C) 2024-2025 MDW <mdeweerd@users.noreply.github.com>
7+
* Copyright (C) 2026 Charlene Benke <charlemen@free.fr>
78
*
89
* This program is free software; you can redistribute it and/or modify
910
* it under the terms of the GNU General Public License as published by
@@ -65,7 +66,7 @@ class ExpenseReportStats extends Stats
6566
/**
6667
* @var string
6768
*/
68-
private $datetouse = 'date_valid';
69+
private $datetouse = 'date_debut';
6970

7071

7172
/**

htdocs/public/webportal/css/form-input-special.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,3 +121,15 @@
121121
input.inputhour, input.inputminute, .maxwidthdate {
122122
max-width: 110px;
123123
}
124+
125+
/* Text area with array option */
126+
.text-area-multi-input-add-group {
127+
display:flex; gap:0.5rem;
128+
}
129+
.text-area-multi-input-add-group select {
130+
flex: 1 1 auto;
131+
min-width: 0;
132+
}
133+
.text-area-multi-input-add-group :where(button, input[type="button"]) {
134+
max-width: 250px;
135+
}

htdocs/webportal/class/html.formwebportal.class.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1283,12 +1283,13 @@ public function inputHtml($htmlName, $value, $morecss = '', $moreparam = '')
12831283
public function inputText($htmlName, $value, $morecss = '', $moreparam = '', $options = array())
12841284
{
12851285
global $langs;
1286-
12871286
$out = '';
12881287
if (!empty($options)) {
12891288
// If the textarea field has a list of arrayofkeyval into its definition, we suggest a combo with possible values to fill the textarea.
1289+
$out .= '<div class="text-area-multi-input-add-group" >';
12901290
$out .= $this->selectarray($htmlName . "_multiinput", $options, '', 1, 0, 0, $moreparam, 0, 0, 0, '', "flat maxwidthonphone" . $morecss);
12911291
$out .= '<input id="' . $htmlName . '_multiinputadd" type="button" class="button" value="' . $langs->trans("Add") . '">';
1292+
$out .= '</div>';
12921293
$out .= "<script>";
12931294
$out .= '
12941295
function handlemultiinputdisabling(htmlname){
@@ -1338,7 +1339,7 @@ function handlemultiinputdisabling(htmlname){
13381339
}
13391340

13401341
require_once DOL_DOCUMENT_ROOT . '/core/class/doleditor.class.php';
1341-
$doleditor = new DolEditor($htmlName, (string) $value, '', 200, 'dolibarr_notes', 'In', false, false, false, ROWS_5, '90%');
1342+
$doleditor = new DolEditor($htmlName, (string) $value, '', 200, 'dolibarr_notes', 'In', false, false, false, ROWS_5);
13421343
$out .= (string) $doleditor->Create(1, '', true, '', '', $moreparam, $morecss);
13431344

13441345
return $out;

0 commit comments

Comments
 (0)