Skip to content

Commit

Permalink
Fix default value in massive actions
Browse files Browse the repository at this point in the history
  • Loading branch information
tomolimo authored Jul 12, 2021
1 parent 6acee8a commit 51a8e8f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions inc/field.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -875,7 +875,7 @@ static function showSingle($itemtype, $searchOption, $massiveaction = false) {
$searchOption['linkfield']);
//find field
$query = "SELECT fields.plugin_fields_containers_id, fields.is_readonly
$query = "SELECT fields.plugin_fields_containers_id, fields.is_readonly, fields.default_value
FROM glpi_plugin_fields_fields fields
LEFT JOIN glpi_plugin_fields_containers containers
ON containers.id = fields.plugin_fields_containers_id
Expand All @@ -897,7 +897,8 @@ static function showSingle($itemtype, $searchOption, $massiveaction = false) {
'type' => $searchOption['pfields_type'],
'plugin_fields_containers_id' => $data['plugin_fields_containers_id'],
'name' => $cleaned_linkfield,
'is_readonly' => $data['is_readonly']
'is_readonly' => $data['is_readonly'],
'default_value' => $data['default_value']
]];

//show field
Expand Down

0 comments on commit 51a8e8f

Please sign in to comment.