Version Notes
none
Download this release
Release Info
Developer | Magento Core Team |
Extension | Wyomind_OrdersEraser |
Version | 4.0.2 |
Comparing to | |
See all releases |
Code changes from version 4.0.1 to 4.0.2
app/code/community/Wyomind/Orderseraser/Model/Observer.php
CHANGED
@@ -7,8 +7,8 @@ class Wyomind_Orderseraser_Model_Observer {
|
|
7 |
$block = $observer->getEvent()->getBlock();
|
8 |
$this->_block = $block;
|
9 |
|
10 |
-
if (get_class($block) == "
|
11 |
-
|
12 |
$actions = array();
|
13 |
|
14 |
if (Mage::getSingleton('admin/session')->isAllowed('sales/order/actions/delete')) {
|
7 |
$block = $observer->getEvent()->getBlock();
|
8 |
$this->_block = $block;
|
9 |
|
10 |
+
if (get_class($block) == Mage::getStoreConfig("orderseraser/system/grid")) {
|
11 |
+
|
12 |
$actions = array();
|
13 |
|
14 |
if (Mage::getSingleton('admin/session')->isAllowed('sales/order/actions/delete')) {
|
app/code/community/Wyomind/Orderseraser/etc/config.xml
CHANGED
@@ -11,7 +11,7 @@
|
|
11 |
<orderseraser>
|
12 |
<system>
|
13 |
<grid>Mage_Adminhtml_Block_Sales_Order_Grid</grid>
|
14 |
-
|
15 |
</orderseraser>
|
16 |
</default>
|
17 |
<admin>
|
@@ -32,7 +32,18 @@
|
|
32 |
<title>Allow Everything</title>
|
33 |
</all>
|
34 |
<admin>
|
35 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
<sales>
|
37 |
<children>
|
38 |
<order>
|
@@ -65,7 +76,7 @@
|
|
65 |
<core_block_abstract_prepare_layout_before>
|
66 |
<observers>
|
67 |
<newmodule_core_block_abstract_prepare_layout_before>
|
68 |
-
|
69 |
<class>Wyomind_Orderseraser_Model_Observer</class>
|
70 |
<method>addMassAction</method>
|
71 |
</newmodule_core_block_abstract_prepare_layout_before>
|
11 |
<orderseraser>
|
12 |
<system>
|
13 |
<grid>Mage_Adminhtml_Block_Sales_Order_Grid</grid>
|
14 |
+
</system>
|
15 |
</orderseraser>
|
16 |
</default>
|
17 |
<admin>
|
32 |
<title>Allow Everything</title>
|
33 |
</all>
|
34 |
<admin>
|
35 |
+
<children>
|
36 |
+
<system>
|
37 |
+
<children>
|
38 |
+
<config>
|
39 |
+
<children>
|
40 |
+
<orderseraser>
|
41 |
+
<title>Order eraser</title>
|
42 |
+
</orderseraser>
|
43 |
+
</children>
|
44 |
+
</config>
|
45 |
+
</children>
|
46 |
+
</system>
|
47 |
<sales>
|
48 |
<children>
|
49 |
<order>
|
76 |
<core_block_abstract_prepare_layout_before>
|
77 |
<observers>
|
78 |
<newmodule_core_block_abstract_prepare_layout_before>
|
79 |
+
<type>model</type>
|
80 |
<class>Wyomind_Orderseraser_Model_Observer</class>
|
81 |
<method>addMassAction</method>
|
82 |
</newmodule_core_block_abstract_prepare_layout_before>
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Wyomind_OrdersEraser</name>
|
4 |
-
<version>4.0.
|
5 |
<stability>stable</stability>
|
6 |
<license>GPL</license>
|
7 |
<channel>community</channel>
|
@@ -11,8 +11,8 @@
|
|
11 |
<notes>none</notes>
|
12 |
<authors><author><name>Wyomind</name><user>auto-converted</user><email>contact@wyomind.com</email></author></authors>
|
13 |
<date>2013-02-28</date>
|
14 |
-
<time>
|
15 |
-
<contents><target name="magecommunity"><dir name="Wyomind"><dir name="Orderseraser"><dir name="Block"><dir name="Order"><file name="Grid.php" hash="d61585596941f1360b6668185415617f"/></dir></dir><dir name="Model"><file name="Observer.php" hash="
|
16 |
<compatible/>
|
17 |
<dependencies/>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Wyomind_OrdersEraser</name>
|
4 |
+
<version>4.0.2</version>
|
5 |
<stability>stable</stability>
|
6 |
<license>GPL</license>
|
7 |
<channel>community</channel>
|
11 |
<notes>none</notes>
|
12 |
<authors><author><name>Wyomind</name><user>auto-converted</user><email>contact@wyomind.com</email></author></authors>
|
13 |
<date>2013-02-28</date>
|
14 |
+
<time>10:04:42</time>
|
15 |
+
<contents><target name="magecommunity"><dir name="Wyomind"><dir name="Orderseraser"><dir name="Block"><dir name="Order"><file name="Grid.php" hash="d61585596941f1360b6668185415617f"/></dir></dir><dir name="Model"><file name="Observer.php" hash="fe0857376834be4a0c2084b1303f3140"/><file name="Orderseraser.php" hash="e526e08d4b600653aa72e37000ff13e3"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="OrderseraserController.php" hash="fb9ec155f7e795700d43a43548ebfc77"/></dir></dir><dir name="etc"><file name="config.xml" hash="cfe48ca9d090cd38e6a4dbc3b949d104"/><file name="system.xml" hash="8d37d12b5d8c5673eff53db06569ae8d"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Wyomind_Orderseraser.xml" hash="21f24202ef69e71be030f0ebd62ab7f2"/></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies/>
|
18 |
</package>
|