Version Notes
Fixed core issue: warning on system config save for dynamic fields (eg. disable modules output).
Download this release
Release Info
Developer | WebFlakeStudio |
Extension | Wfs_DisableEmails |
Version | 1.2.1 |
Comparing to | |
See all releases |
Code changes from version 1.2.0 to 1.2.1
app/code/community/Wfs/DisableEmails/Helper/Data.php
CHANGED
@@ -38,7 +38,11 @@ class Wfs_DisableEmails_Helper_Data extends Mage_Core_Helper_Abstract
|
|
38 |
*/
|
39 |
public function isDisabled($templateId)
|
40 |
{
|
41 |
-
$path = Wfs_DisableEmails_Model_Email_Template::XML_PATH_PREFIX
|
|
|
|
|
|
|
|
|
42 |
return '1' === Mage::getStoreConfig($path);
|
43 |
}
|
44 |
}
|
38 |
*/
|
39 |
public function isDisabled($templateId)
|
40 |
{
|
41 |
+
$path = Wfs_DisableEmails_Model_Email_Template::XML_PATH_PREFIX;
|
42 |
+
if (is_numeric($templateId)) {
|
43 |
+
$path .= '_';
|
44 |
+
}
|
45 |
+
$path .= $templateId;
|
46 |
return '1' === Mage::getStoreConfig($path);
|
47 |
}
|
48 |
}
|
app/code/community/Wfs/DisableEmails/Model/Adminhtml/Config/Data.php
CHANGED
@@ -202,7 +202,7 @@ class Wfs_DisableEmails_Model_Adminhtml_Config_Data extends Mage_Adminhtml_Model
|
|
202 |
$clonedConfig->unsConfigId();
|
203 |
$clonedConfig->setValue($wfsValue);
|
204 |
$clonedConfig->setPath(
|
205 |
-
Wfs_DisableEmails_Model_Email_Template::XML_PATH_PREFIX .
|
206 |
);
|
207 |
|
208 |
$saveTransaction->addObject($clonedConfig);
|
@@ -225,7 +225,7 @@ class Wfs_DisableEmails_Model_Adminhtml_Config_Data extends Mage_Adminhtml_Model
|
|
225 |
$clonedConfig = clone $emailTemplateConfig;
|
226 |
$clonedConfig->unsConfigId();
|
227 |
$clonedConfig->setPath(
|
228 |
-
Wfs_DisableEmails_Model_Email_Template::XML_PATH_PREFIX .
|
229 |
);
|
230 |
$saveTransaction->addObject($clonedConfig);
|
231 |
}
|
202 |
$clonedConfig->unsConfigId();
|
203 |
$clonedConfig->setValue($wfsValue);
|
204 |
$clonedConfig->setPath(
|
205 |
+
Wfs_DisableEmails_Model_Email_Template::XML_PATH_PREFIX . '_' .$emailTemplateConfig->getValue()
|
206 |
);
|
207 |
|
208 |
$saveTransaction->addObject($clonedConfig);
|
225 |
$clonedConfig = clone $emailTemplateConfig;
|
226 |
$clonedConfig->unsConfigId();
|
227 |
$clonedConfig->setPath(
|
228 |
+
Wfs_DisableEmails_Model_Email_Template::XML_PATH_PREFIX . '_' .$templateId
|
229 |
);
|
230 |
$saveTransaction->addObject($clonedConfig);
|
231 |
}
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Wfs_DisableEmails</name>
|
4 |
-
<version>1.2.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://magery-themes.com/MAGERY-LICENSE.txt">Custom</license>
|
7 |
<channel>community</channel>
|
@@ -10,9 +10,9 @@
|
|
10 |
<description>Disable Emails extension from WebFlakeStudio allows to disable specific email notifications in Magento store. In some cases it is needed to disable particular transactional email. You can do this easily with Wfs_DisableEmails module. This extension can be used to disable all native Magento email notifications and even notifications of custom modules.</description>
|
11 |
<notes>Fixed core issue: warning on system config save for dynamic fields (eg. disable modules output).</notes>
|
12 |
<authors><author><name>WebFlakeStudio</name><user>WebFlakeStudio</user><email>webflakestudio@gmail.com</email></author></authors>
|
13 |
-
<date>2016-10-
|
14 |
-
<time>
|
15 |
-
<contents><target name="mageetc"><dir name="modules"><file name="Wfs_DisableEmails.xml" hash="f71ceb680e1037ec59823b1c635df2ad"/></dir></target><target name="magecommunity"><dir name="Wfs"><dir name="DisableEmails"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Form"><dir name="Fieldset"><file name="DisableEmails.php" hash="cd670b48f115efde99170682128cb2bd"/></dir></dir></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Wfs_DisableEmails</name>
|
4 |
+
<version>1.2.1</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://magery-themes.com/MAGERY-LICENSE.txt">Custom</license>
|
7 |
<channel>community</channel>
|
10 |
<description>Disable Emails extension from WebFlakeStudio allows to disable specific email notifications in Magento store. In some cases it is needed to disable particular transactional email. You can do this easily with Wfs_DisableEmails module. This extension can be used to disable all native Magento email notifications and even notifications of custom modules.</description>
|
11 |
<notes>Fixed core issue: warning on system config save for dynamic fields (eg. disable modules output).</notes>
|
12 |
<authors><author><name>WebFlakeStudio</name><user>WebFlakeStudio</user><email>webflakestudio@gmail.com</email></author></authors>
|
13 |
+
<date>2016-10-29</date>
|
14 |
+
<time>10:03:34</time>
|
15 |
+
<contents><target name="mageetc"><dir name="modules"><file name="Wfs_DisableEmails.xml" hash="f71ceb680e1037ec59823b1c635df2ad"/></dir></target><target name="magecommunity"><dir name="Wfs"><dir name="DisableEmails"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Form"><dir name="Fieldset"><file name="DisableEmails.php" hash="cd670b48f115efde99170682128cb2bd"/></dir></dir></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="322c1fe58e949995bcac26396aca6e8a"/></dir><dir name="Model"><dir name="Adminhtml"><dir name="Config"><file name="Data.php" hash="88b4455bdafbbdcc5095e011124d9da5"/></dir></dir><dir name="Email"><dir name="Template"><file name="Mailer.php" hash="9b1cc0135f09d9fdf70164963481c809"/></dir><file name="Template.php" hash="44d1bd2727b5ebb46217bd1a5b6888cc"/></dir></dir><file name="WFS-LICENSE-COMMUNITY.txt" hash="9c81d8da88f93ed3884db1f79e4a63d5"/><dir name="etc"><file name="config.xml" hash="7f346d2e19ae6b1048581ed5d48d07da"/><file name="system.xml" hash="ce0c17e990fe107ec4f68e61149a6f0c"/></dir></dir></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|