From 63c9d7a2d5a8740413684bdb158fa9b1e95e47b5 Mon Sep 17 00:00:00 2001 From: Ivo Valchev Date: Tue, 23 Feb 2021 15:49:54 +0100 Subject: [PATCH] Update ArticleInjectorWidget.php --- src/ArticleInjectorWidget.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ArticleInjectorWidget.php b/src/ArticleInjectorWidget.php index e44c9eb..c7d1fd2 100644 --- a/src/ArticleInjectorWidget.php +++ b/src/ArticleInjectorWidget.php @@ -25,7 +25,7 @@ public function run(array $params = []): ?string { $request = $this->getExtension()->getRequest(); // Only produce output when editing or creating a Record, with GET method. - if (! in_array($request->get('_route'), ['bolt_content_edit', 'bolt_content_new'], true) || + if (! in_array($request->get('_route'), ['bolt_content_edit', 'bolt_content_new', 'bolt_content_duplicate'], true) || ($this->getExtension()->getRequest()->getMethod() !== 'GET')) { return null; }