Skip to content

Commit e35cfea

Browse files
committed
fix(radiosfield): changing question type from glpi select fails
1 parent d667d69 commit e35cfea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inc/field/radiosfield.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function getDesignSpecializationField(): array {
7474
$additions .= '</label>';
7575
$additions .= '</td>';
7676
$additions .= '<td>';
77-
$value = json_decode($this->question->fields['values']);
77+
$value = json_decode($this->question->fields['values'], true);
7878
if ($value === null) {
7979
$value = [];
8080
}

0 commit comments

Comments
 (0)