Version Notes
* Include accidentally forgotten changes. Sorry. Yet another attempt :-(
Download this release
Release Info
Developer | Magento Core Team |
Extension | category_access_control |
Version | 1.0.2.2 |
Comparing to | |
See all releases |
Code changes from version 1.0.2.1 to 1.0.2.2
app/code/community/ZetaPrints/AccessControl/Model/Entity/Attribute/Backend/Customergroups.php
CHANGED
@@ -143,6 +143,19 @@ class ZetaPrints_AccessControl_Model_Entity_Attribute_Backend_Customergroups
|
|
143 |
Mage::helper('groupscatalog')->__('The db field size is %s bytes to small to save the group permissions. Please enable the configuration setting to dynamicaly grow the field length and try again.',
|
144 |
($requiredLength - $fieldLength > 0 ? $requiredLength - $fieldLength : 0) ) );
|
145 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
146 |
}
|
147 |
|
148 |
?>
|
143 |
Mage::helper('groupscatalog')->__('The db field size is %s bytes to small to save the group permissions. Please enable the configuration setting to dynamicaly grow the field length and try again.',
|
144 |
($requiredLength - $fieldLength > 0 ? $requiredLength - $fieldLength : 0) ) );
|
145 |
}
|
146 |
+
|
147 |
+
public function validate ($object) {
|
148 |
+
$attribute = $this->getAttribute();
|
149 |
+
$value = $object->getData($attribute->getAttributeCode());
|
150 |
+
|
151 |
+
if (is_null($value) || '' === $value) {
|
152 |
+
$label = $attribute->getFrontend()->getLabel();
|
153 |
+
Mage::throwException(Mage::helper('eav')->__('The value of attribute "%s" must be unique.', $label));
|
154 |
+
}
|
155 |
+
|
156 |
+
return true;
|
157 |
+
}
|
158 |
+
|
159 |
}
|
160 |
|
161 |
?>
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>category_access_control</name>
|
4 |
-
<version>1.0.2.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
@@ -27,11 +27,11 @@ We actively develop and support this extension please, report any bugs here.
|
|
27 |
Our existing customers using our web-to-print and dynamic
|
28 |
imaging extension (http://www.magentocommerce.com/extension/1586) can contact us
|
29 |
via email with bugs reports and feature requests.</description>
|
30 |
-
<notes>* Include accidentally forgotten changes. Sorry
|
31 |
<authors><author><name>Anatoly A. Kazantsev</name><user>auto-converted</user><email>anatoly.kazantsev@gmail.com</email></author></authors>
|
32 |
-
<date>2011-01-
|
33 |
<time></time>
|
34 |
-
<contents><target name="mageetc"><dir name="modules"><file name="ZetaPrints_AccessControl.xml" hash="7d411860d7d6e80cc5338632cfeeea45"/></dir></target><target name="magecommunity"><dir name="ZetaPrints"><dir name="AccessControl"><dir name="Block"><dir name="Advanced"><file name="Result.php" hash="af62d72793dc5c12e6232f956ee34d16"/></dir><dir name="Catalog"><dir name="Product"><dir name="Helper"><file name="Customergroups.php" hash="69683e9dbb2c09767971c048b12519df"/></dir></dir></dir><dir name="Layer"><file name="View.php" hash="874f227ff8967df12dc40b13e02998e2"/></dir><dir name="Seo"><dir name="Sitemap"><file name="Category.php" hash="ea1aabf0de34618c359a753d90b38506"/><file name="Product.php" hash="8b3dd9eefa301be37dce11007531f2c8"/></dir></dir><dir name="Product"><dir name="List"><file name="Toolbar.php" hash="f6d3eaa3bcfb1963f15be29a7512b127"/></dir></dir><file name="Navigation.php" hash="334fc71b2890e02e25ddd05ddd487f3d"/></dir><dir name="controllers"><file name="AjaxController.php" hash="b8e718841ba5bc5f0981c0218a597639"/></dir><dir name="etc"><file name="config.xml" hash="3778220e09b9770433ead37ede54f967"/><file name="system.xml" hash="e3c3712db65b07e5812b9d00f0442e57"/></dir><dir name="Helper"><file name="Category.php" hash="4b9edb2638294f9854e9906721bde714"/><file name="Data.php" hash="d923ac2ccbbcf760bc069f8ee9309482"/><file name="Product.php" hash="0b702dae6873468f0d7c35ad41e12229"/></dir><dir name="Model"><dir name="Config"><dir name="Data"><file name="Customergroups.php" hash="0d4ae6ec360402709cd723ee598b43eb"/></dir><dir name="Source"><dir name="Customergroups"><file name="Category.php" hash="c26a27a3f19ba33ec3f1b61e78aeba55"/></dir><file name="Customergroups.php" hash="f89c1449aecc1aea5a56da71196f5316"/></dir></dir><dir name="Entity"><dir name="Attribute"><dir name="Backend"><file name="Customergroups.php" hash="
|
35 |
<compatible/>
|
36 |
<dependencies/>
|
37 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>category_access_control</name>
|
4 |
+
<version>1.0.2.2</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
27 |
Our existing customers using our web-to-print and dynamic
|
28 |
imaging extension (http://www.magentocommerce.com/extension/1586) can contact us
|
29 |
via email with bugs reports and feature requests.</description>
|
30 |
+
<notes>* Include accidentally forgotten changes. Sorry. Yet another attempt :-(</notes>
|
31 |
<authors><author><name>Anatoly A. Kazantsev</name><user>auto-converted</user><email>anatoly.kazantsev@gmail.com</email></author></authors>
|
32 |
+
<date>2011-01-14</date>
|
33 |
<time></time>
|
34 |
+
<contents><target name="mageetc"><dir name="modules"><file name="ZetaPrints_AccessControl.xml" hash="7d411860d7d6e80cc5338632cfeeea45"/></dir></target><target name="magecommunity"><dir name="ZetaPrints"><dir name="AccessControl"><dir name="Block"><dir name="Advanced"><file name="Result.php" hash="af62d72793dc5c12e6232f956ee34d16"/></dir><dir name="Catalog"><dir name="Product"><dir name="Helper"><file name="Customergroups.php" hash="69683e9dbb2c09767971c048b12519df"/></dir></dir></dir><dir name="Layer"><file name="View.php" hash="874f227ff8967df12dc40b13e02998e2"/></dir><dir name="Seo"><dir name="Sitemap"><file name="Category.php" hash="ea1aabf0de34618c359a753d90b38506"/><file name="Product.php" hash="8b3dd9eefa301be37dce11007531f2c8"/></dir></dir><dir name="Product"><dir name="List"><file name="Toolbar.php" hash="f6d3eaa3bcfb1963f15be29a7512b127"/></dir></dir><file name="Navigation.php" hash="334fc71b2890e02e25ddd05ddd487f3d"/></dir><dir name="controllers"><file name="AjaxController.php" hash="b8e718841ba5bc5f0981c0218a597639"/></dir><dir name="etc"><file name="config.xml" hash="3778220e09b9770433ead37ede54f967"/><file name="system.xml" hash="e3c3712db65b07e5812b9d00f0442e57"/></dir><dir name="Helper"><file name="Category.php" hash="4b9edb2638294f9854e9906721bde714"/><file name="Data.php" hash="d923ac2ccbbcf760bc069f8ee9309482"/><file name="Product.php" hash="0b702dae6873468f0d7c35ad41e12229"/></dir><dir name="Model"><dir name="Config"><dir name="Data"><file name="Customergroups.php" hash="0d4ae6ec360402709cd723ee598b43eb"/></dir><dir name="Source"><dir name="Customergroups"><file name="Category.php" hash="c26a27a3f19ba33ec3f1b61e78aeba55"/></dir><file name="Customergroups.php" hash="f89c1449aecc1aea5a56da71196f5316"/></dir></dir><dir name="Entity"><dir name="Attribute"><dir name="Backend"><file name="Customergroups.php" hash="c30261477a05e216bb2107c8b7866611"/></dir></dir></dir><dir name="Resource"><dir name="Sitemap"><dir name="Mysql4"><file name="Category.php" hash="16a7b86ede26c5e65011f05c76367477"/><file name="Product.php" hash="a28c57995c6255c501b7f27eb5695ee8"/></dir></dir><file name="Setup.php" hash="574d8d35dd62f2736ae99979ae4d9089"/></dir><file name="Layer.php" hash="737f40bae67cc8247b20e13d4727202a"/><file name="Observer.php" hash="36b5eeb5f03c6ee89142a531ceb7fe46"/></dir><dir name="sql"><dir name="accesscontrol_setup"><file name="mysql4-install-1.php" hash="0f8ee46478276591d47ba98367e9a9e0"/><file name="mysql4-upgrade-1-2.php" hash="833c4bbd173cede2e973720df187d101"/><file name="mysql4-upgrade-2-3.php" hash="0aab3967e72337b64c38c6c5500ce9a6"/><file name="mysql4-upgrade-3-4.php" hash="82ab580a46add9d4709d1c7a5faba841"/></dir></dir></dir></dir></target></contents>
|
35 |
<compatible/>
|
36 |
<dependencies/>
|
37 |
</package>
|