From 8e3cc471dfb7661543270c4bcd78467e289fb1c3 Mon Sep 17 00:00:00 2001 From: Molkobain Date: Sat, 14 Aug 2021 23:33:21 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B01836=20-=20Cancel=20of=20an=20object=20c?= =?UTF-8?q?reation=20form=20now=20redirects=20to=20the=20search=20page=20o?= =?UTF-8?q?f=20the=20same=20class=20(instead=20of=20just=20showing=20"oper?= =?UTF-8?q?ation=20cancelled")?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/cmdbabstract.class.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/cmdbabstract.class.inc.php b/application/cmdbabstract.class.inc.php index 6ff555b35..c1742b9a4 100644 --- a/application/cmdbabstract.class.inc.php +++ b/application/cmdbabstract.class.inc.php @@ -2894,7 +2894,7 @@ EOF $oPage->add($oAppContext->GetForForm()); // Hook the cancel button via jQuery so that it can be unhooked easily as well if needed - $sDefaultUrl = utils::GetAbsoluteUrlAppRoot().'pages/UI.php?operation=cancel&'.$oAppContext->GetForLink(); + $sDefaultUrl = utils::GetAbsoluteUrlAppRoot().'pages/UI.php?operation=search_form&class='.$sClass.'&'.$oAppContext->GetForLink(); $oPage->add_ready_script("$('#form_{$this->m_iFormId} button.cancel').on('click', function() { BackToDetails('$sClass', $iKey, '$sDefaultUrl', $sJSToken)} );"); $iFieldsCount = count($aFieldsMap);