From 70dafcb13c8b598c7fa25ebedfb56a9c244a81a7 Mon Sep 17 00:00:00 2001 From: Muhamad Surya Iksanudin Date: Thu, 8 Feb 2018 18:53:08 +0700 Subject: [PATCH] Revert delete form Revert delete form ref: #2044 --- src/Resources/views/default/includes/_delete_form.html.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Resources/views/default/includes/_delete_form.html.twig b/src/Resources/views/default/includes/_delete_form.html.twig index 7228965190..fa346449ef 100644 --- a/src/Resources/views/default/includes/_delete_form.html.twig +++ b/src/Resources/views/default/includes/_delete_form.html.twig @@ -1,6 +1,6 @@ {{ form(delete_form, { - action: delete_form.vars.action ~ (delete_form.vars.action starts with '?' ? '&' : '?') ~ 'referer=' ~ referer, + action: delete_form.vars.action ~ ('?' in delete_form.vars.action ? '&' : '?') ~ 'referer=' ~ referer, method: 'DELETE', attr: { id: 'delete-form', style: 'display: none' } })