Skip to content

"Undefined index: default_value" in bulk update actions for text fields (check missing in /inc/fields.class.php #670 in v. 1.12) #418

@Mirkk

Description

@Mirkk

Hi all,
since (at least) GLPI 9.4 an "Undefined index: default_value" appears in bulk update actions for text fields (without debug mode, the editable field does simply not appear)

The error appears in /inc/fields.class.php #681 in GLPI9.5 with Fields v. 1.11,
and in #670 in Fields v.1.12.

Solution: check for validity of the field by adding isset($field['default_value'])
/inc/fields.class.php #670 in Fields v.1.12:
if ($value === "" && isset($field['default_value']) && $field['default_value'] !== "") {

Thank you
Mirko

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions