cancel
Showing results for 
Search instead for 
Did you mean: 

SUPEE-11086 1.9.1 Error for Customer Group Edit Hunk

   Did you know you can see the translated content as per your choice?

Translation is in progress. Please check again after few minutes.

SUPEE-11086 1.9.1 Error for Customer Group Edit Hunk

We've recently just patched our 1.9.1.0 build with SUPEE-11086, and came across an issue with a failing patch for app/code/core/Mage/Adminhtml/Block/Customer/Group/Edit.php

 

 - It's expecting that line 57 be the same codebase as Magento 1.9.3 (at least from what we've tested so far).

 

Error:

checking file app/code/core/Mage/Adminhtml/Block/Customer/Group/Edit.php
Hunk #1 FAILED at 57.
1 out of 1 hunk FAILED

Unfortunately, the fix for us was to grab the latest Edit.php from a 1.9.3 install we have, and then patch. I'm sure there's a better explanation, but as far as we can tell, 1.9.1.0 does NOT include the getDeleteUrl() function, and that's what it's patching. Confirmed in a fresh download of 1.9.1.0 from Release Archive.

1 REPLY 1

Re: SUPEE-11086 1.9.1 Error for Customer Group Edit Hunk

Hi @texoweb 

 

I think you have not applied SUPEE-10975 patch before applying SUPEE-11086 patch.

 

It has following code 

diff --git app/code/core/Mage/Adminhtml/Block/Customer/Group/Edit.php app/code/core/Mage/Adminhtml/Block/Customer/Group/Edit.php
index 2391e80a302..619246d3e3a 100644
--- app/code/core/Mage/Adminhtml/Block/Customer/Group/Edit.php
+++ app/code/core/Mage/Adminhtml/Block/Customer/Group/Edit.php
@@ -49,6 +49,18 @@ class Mage_Adminhtml_Block_Customer_Group_Edit extends Mage_Adminhtml_Block_Widg
         }
     }
 
+    public function getDeleteUrl()
+    {
+        if (!Mage::getSingleton('adminhtml/url')->useSecretKey()) {
+            return $this->getUrl('*/*/delete', array(
+                $this->_objectId => $this->getRequest()->getParam($this->_objectId),
+                'form_key' => Mage::getSingleton('core/session')->getFormKey()
+            ));
+        } else {
+            parent::getDeleteUrl();
+        }
+    }
+
---
Problem Solved Click Accept as Solution!:Magento Community India Forum