Skip to content
Snippets Groups Projects
Commit e5e6523b authored by Bojan Bogdanovic's avatar Bojan Bogdanovic
Browse files

Resolve undefined indexes in the scope form

parent 07c9d371
No related branches found
No related tags found
1 merge request!65Issue #3257293: Registered claims error after upgrading from 5.0.5 to 5.2.0.
Pipeline #6167 passed
......@@ -81,12 +81,12 @@ class Oauth2ScopeForm extends EntityForm {
'status' => [
'#type' => 'checkbox',
'#title' => $grant_type_label,
'#default_value' => $grant_types[$grant_type_key]['status'],
'#default_value' => $grant_types[$grant_type_key]['status'] ?? FALSE,
],
'description' => [
'#type' => 'textfield',
'#title' => $this->t('Description for %grant_type', ['%grant_type' => $grant_type_label]),
'#default_value' => $grant_types[$grant_type_key]['description'],
'#default_value' => $grant_types[$grant_type_key]['description'] ?? '',
'#states' => [
'visible' => [
':input[name="grant_types[' . $grant_type_key . '][status]"]' => ['checked' => TRUE],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment