File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -292,7 +292,11 @@ function wxt_core_form_user_form_alter(array &$form) {
292292function wxt_core_form_alter(array &$form, FormStateInterface $form_state) {
293293 $form_object = $form_state->getFormObject();
294294
295- if ($form_object instanceof ContentEntityFormInterface && isset($form['revision_information']) && $form['revision_information']['#access']) {
295+ if (
296+ $form_object instanceof ContentEntityFormInterface &&
297+ isset($form['revision_information']) &&
298+ (!isset($form['revision_information']['#access']) || $form['revision_information']['#access'])
299+ ) {
296300 // Load the form mode and show the revision information if the form mode
297301 // allows the revision UI to be shown.
298302 $form_display = $form_object->getFormDisplay($form_state);
You can’t perform that action at this time.
0 commit comments