From 66d414a6dc71e7d224c8b718327fd33f68ffe6a4 Mon Sep 17 00:00:00 2001 From: arunkumark <arunkumark@2994023.no-reply.drupal.org> Date: Sat, 19 Nov 2022 01:55:33 +0000 Subject: [PATCH] Issue #3041508: Remove hard redirect from a FillPdfFieldForm back to its parent FillPdfForm --- config/install/views.view.fillpdf_form_fields.yml | 2 +- src/Form/FillPdfFormFieldForm.php | 11 ----------- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/config/install/views.view.fillpdf_form_fields.yml b/config/install/views.view.fillpdf_form_fields.yml index 34a0e49..3b41233 100644 --- a/config/install/views.view.fillpdf_form_fields.yml +++ b/config/install/views.view.fillpdf_form_fields.yml @@ -537,7 +537,7 @@ display: prefix: '0' value: '0' suffix: '0' - destination: false + destination: true plugin_id: dropbutton filters: { } sorts: diff --git a/src/Form/FillPdfFormFieldForm.php b/src/Form/FillPdfFormFieldForm.php index 365432a..6fb01e7 100644 --- a/src/Form/FillPdfFormFieldForm.php +++ b/src/Form/FillPdfFormFieldForm.php @@ -72,15 +72,4 @@ class FillPdfFormFieldForm extends ContentEntityForm { return $form; } - /** - * {@inheritdoc} - */ - public function save(array $form, FormStateInterface $form_state) { - $form_state->setRedirect('entity.fillpdf_form.edit_form', [ - 'fillpdf_form' => $this->entity->fillpdf_form->target_id, - ]); - - return parent::save($form, $form_state); - } - } -- GitLab