Skip to content

Commit 9026f8a

Browse files
committed
fix
1 parent 3b56981 commit 9026f8a

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎inc/field.class.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1349,7 +1349,7 @@ public static function prepareHtmlFields(
13491349
$value = is_array($decoded) ? $decoded : [];
13501350
}
13511351

1352-
if ($field['multiple'] && is_array($value)) {
1352+
if ($field['multiple']) {
13531353
// Flatten any nested arrays caused by corrupted DB data (double-encoded values)
13541354
// so that Dropdown::show() always receives a flat list of scalars.
13551355
$value = array_values(array_filter(

‎tests/Units/MassiveActionGlpiItemDropdownTest.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function setUp(): void
6464

6565
public function tearDown(): void
6666
{
67-
unset($_REQUEST['massiveaction'], $_POST);
67+
unset($_REQUEST['massiveaction']);
6868
$this->tearDownFieldTest();
6969
GLPITestCase::tearDown();
7070
}

‎tests/Units/MassiveActionRealFlowTest.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function setUp(): void
6262

6363
public function tearDown(): void
6464
{
65-
unset($_REQUEST['massiveaction'], $_POST);
65+
unset($_REQUEST['massiveaction']);
6666
$this->tearDownFieldTest();
6767
GLPITestCase::tearDown();
6868
}

0 commit comments

Comments
 (0)