mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 21:54:14 -08:00
Merge pull request #13085 from inietov/fixes/checkboxes_not_holding_value
Fixed #12978 Custom Field Checkboxes not holding assigned values
This commit is contained in:
commit
e431cd5146
|
@ -306,9 +306,9 @@ class CustomField extends Model
|
||||||
$arr_parts = explode('|', $arr[$x]);
|
$arr_parts = explode('|', $arr[$x]);
|
||||||
if ($arr_parts[0] != '') {
|
if ($arr_parts[0] != '') {
|
||||||
if (array_key_exists('1', $arr_parts)) {
|
if (array_key_exists('1', $arr_parts)) {
|
||||||
$result[$arr_parts[0]] = $arr_parts[1];
|
$result[$arr_parts[0]] = trim($arr_parts[1]);
|
||||||
} else {
|
} else {
|
||||||
$result[$arr_parts[0]] = $arr_parts[0];
|
$result[$arr_parts[0]] = trim($arr_parts[0]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue