TBT_Enhancedgrid - Version 1.3.2.1

Version Notes

Improved some of the architecture to make the grid column handlers more expandable in the future, and resolved issue with Magento Community Edition 1.6+ and Magento Enterprise/Professional Editions 1.11+

Download this release

Release Info

Developer Magento Core Team
Extension TBT_Enhancedgrid
Version 1.3.2.1
Comparing to
See all releases


Code changes from version 1.3.2.0 to 1.3.2.1

app/code/community/TBT/Enhancedgrid/Model/System/Config/Source/Columns/Show.php CHANGED
@@ -29,9 +29,8 @@ class TBT_Enhancedgrid_Model_System_Config_Source_Columns_Show
29
  {
30
  public function toOptionArray()
31
  {
 
32
 
33
- $collection = Mage::getResourceModel('catalog/product_attribute_collection')
34
- ->addFilter("is_visible", 1);
35
  $cols = array();
36
  $cols[] = array('value' => 'id', 'label' => 'ID');
37
  $cols[] = array('value' => 'type_id', 'label' => 'Type (simple, bundle, etc)');
@@ -46,4 +45,23 @@ class TBT_Enhancedgrid_Model_System_Config_Source_Columns_Show
46
  }
47
  return $cols;
48
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
49
  }
29
  {
30
  public function toOptionArray()
31
  {
32
+ $collection = $this->_getAttrCol();
33
 
 
 
34
  $cols = array();
35
  $cols[] = array('value' => 'id', 'label' => 'ID');
36
  $cols[] = array('value' => 'type_id', 'label' => 'Type (simple, bundle, etc)');
45
  }
46
  return $cols;
47
  }
48
+
49
+ /**
50
+ * @return Mage_Eav_Model_Mysql4_Entity_Attribute_Collection
51
+ */
52
+ protected function _getAttrCol() {
53
+
54
+ if ( Mage::helper( 'enhancedgrid/version' )->isBaseMageVersionAtLeast( '1.4' ) ) {
55
+ $collection = Mage::getResourceModel( 'catalog/product_attribute_collection' );
56
+
57
+ } else {
58
+ $type_id = Mage::getModel( 'eav/entity' )->setType( 'catalog_product' )->getTypeId();
59
+ $collection = Mage::getResourceModel( 'eav/entity_attribute_collection' );
60
+ $collection->setEntityTypeFilter( $type_id );
61
+ }
62
+
63
+ $collection->addFilter( "is_visible", 1 );
64
+
65
+ return $collection;
66
+ }
67
  }
app/code/community/TBT/Enhancedgrid/etc/config.xml CHANGED
@@ -3,7 +3,7 @@
3
  <config>
4
  <modules>
5
  <TBT_Enhancedgrid>
6
- <version>1.3.2.0</version>
7
  </TBT_Enhancedgrid>
8
  </modules>
9
  <admin>
@@ -46,6 +46,27 @@
46
  </enhancedgrid>
47
  </models>
48
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
49
  <rewrite>
50
  <!-- @nelkaake -a 13/11/10: Added for Magento 1.4 compatibility -->
51
  <tbt_enhancedgrid_catalog_product_export_csv>
3
  <config>
4
  <modules>
5
  <TBT_Enhancedgrid>
6
+ <version>1.3.2.1</version>
7
  </TBT_Enhancedgrid>
8
  </modules>
9
  <admin>
46
  </enhancedgrid>
47
  </models>
48
 
49
+ <resources>
50
+ <enhancedgrid_setup>
51
+ <setup>
52
+ <module>TBT_Enhancedgrid</module>
53
+ </setup>
54
+ <connection>
55
+ <use>core_setup</use>
56
+ </connection>
57
+ </enhancedgrid_setup>
58
+ <enhancedgrid_write>
59
+ <connection>
60
+ <use>core_write</use>
61
+ </connection>
62
+ </enhancedgrid_write>
63
+ <enhancedgrid_read>
64
+ <connection>
65
+ <use>core_read</use>
66
+ </connection>
67
+ </enhancedgrid_read>
68
+ </resources>
69
+
70
  <rewrite>
71
  <!-- @nelkaake -a 13/11/10: Added for Magento 1.4 compatibility -->
72
  <tbt_enhancedgrid_catalog_product_export_csv>
app/code/community/TBT/Enhancedgrid/sql/enhancedgrid_setup/mysql4-install-1.0.0.0.php ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ $installer = $this;
4
+
5
+ $installer->startSetup();
6
+ $install_version = Mage::getConfig ()->getNode ( 'modules/TBT_Enhancedgrid/version' );
7
+
8
+ $msg_title = "Enhanced Grid {$install_version} was successfully installed! Remember to flush all cache, recompile and log-out and log back in.";
9
+ $msg_desc = "Enhanced Grid {$install_version} was successfully installed on your store. "
10
+ . "Remember to flush all cache, recompile and log-out and log back in. "
11
+ . "The new Enhanced Products Grid replaces the default Magento product management grid."
12
+ . "You can configure Enhanced Grid in the Configuration section.";
13
+ $url = "#";
14
+
15
+ $message = Mage::getModel( 'adminnotification/inbox' );
16
+ $message->setDateAdded( date( "c", time() ) );
17
+
18
+ $message->setSeverity( Mage_AdminNotification_Model_Inbox::SEVERITY_NOTICE );
19
+
20
+ $message->setTitle( $msg_title );
21
+ $message->setDescription( $msg_desc );
22
+ $message->setUrl( $url );
23
+ $message->save();
24
+
25
+ $installer->endSetup();
26
+
package.xml CHANGED
@@ -1,18 +1,19 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>TBT_Enhancedgrid</name>
4
- <version>1.3.2.0</version>
5
  <stability>stable</stability>
6
  <license>OSL 3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
- <summary>Improved some of the architecture to make the grid column handlers more expandable in the future, and resolved issue with Magento Community Edition 1.6+ and Magento Enterprise/Professional Editions 1.11+</summary>
 
10
  <description>Enhanced Grid is the most downloaded community-driven extension on Magento Connect with over 15,000 Magento stores world-wide running it. Enhanced Grid makes managing products much easier and more efficient for store administrators.</description>
11
  <notes>Improved some of the architecture to make the grid column handlers more expandable in the future, and resolved issue with Magento Community Edition 1.6+ and Magento Enterprise/Professional Editions 1.11+</notes>
12
  <authors><author><name>Jay</name><user>auto-converted</user><email>contact@wdca.ca</email></author><author><name>Jay</name><user>auto-converted</user><email>nelkaake@wdca.ca</email></author></authors>
13
  <date>2011-10-10</date>
14
- <time>19:15:18</time>
15
- <contents><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="tbt_enhancedgrid.xml" hash="d0dd492f38558072d5c0dad53703a6c6"/></dir><dir name="template"><dir name="tbt"><dir name="enhancedgrid"><dir name="catalog"><file name="product.phtml" hash="449dec037392f3910b9269a24b99e24a"/><dir name="product"><file name="grid.phtml" hash="8e39bb3abd59ef4ba12fdf4d725dda90"/></dir></dir></dir></dir></dir></dir></dir></dir></target><target name="mage"><dir name="js"><dir name="tbt"><dir name="enhancedgrid"><file name="egsupplemental.js" hash="da3aa882d47a41c4d2f7d0c48233ae1e"/><file name="enhancedgrid.js" hash="fcbbe08d942719a668d3536246664628"/><dir name="customfunctions"><file name="catalog_products.js" hash="db00553aa26aa6851f92f84447f3cd14"/></dir><dir name="resources"><dir name="css"><file name="enhancedgrid.css" hash="a219b0e656329f2407835dbe346f81d3"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="TBT_Enhancedgrid.xml" hash="85a6ca652ec3777aa244a78c1c4fdac4"/></dir></target><target name="magecommunity"><dir name="TBT"><dir name="Enhancedgrid"><dir name="Block"><dir name="Catalog"><file name="Product.php" hash="68048313967635cce72082d36afb1ac4"/><dir name="Product"><file name="Grid.php" hash="78c9b49ca889805299c9a7e3a369aa6b"/><dir name="Grid"><file name="Columns.php" hash="f84214fc43f665c79b92dc7a092b364f"/></dir></dir></dir><dir name="System"><file name="Html.php" hash="ae18224ae9a7e450e03ccf22612e3dde"/></dir><dir name="Widget"><file name="Loyalty.php" hash="d1f6919e6bda3e5c201e2b9cd2fb25f1"/><dir name="Grid"><file name="Column.php" hash="b360986bb6f20cb2f7af22bb383c909e"/><dir name="Column"><dir name="Filter"><file name="Category.php" hash="8eb68d6bdb28d08e4aa831f2609be421"/><file name="Image.php" hash="b1e25d3e8d03a0869e1c2edf5fcdd761"/></dir><dir name="Renderer"><file name="Action.php" hash="32c3917ad4c07942e9f0d003c6854b2b"/><file name="Category.php" hash="42eff0eac536ef4b511600b2bd1d2ceb"/><file name="Image.php" hash="ddac5ed4cc015c4dd256f172c802e9cf"/></dir></dir></dir></dir></dir><dir name="controllers"><dir name="Catalog"><file name="ProductController.php" hash="39ab9a7719710e1454d7f8b1ede4a104"/></dir></dir><dir name="etc"><file name="config.xml" hash="7c417ee38f4cb2adc84a0a77001d5616"/><file name="system.xml" hash="5e18079f506dae5dc6627f41f1d7336c"/></dir><dir name="Helper"><file name="Data.php" hash="236773d2fc20ccc12702af8a41c5fe96"/><file name="Version.php" hash="f90fbcb7beffbe1ac6541f529df9b35b"/></dir><dir name="Model"><dir name="Collection"><dir name="Decorator"><file name="Abstract.php" hash="5358ef85d8ad82fef81e220ab5feec46"/></dir></dir><dir name="Product"><dir name="Collection"><dir name="Category"><file name="Decorator.php" hash="16fff625d09211e054e2caebbdd535ce"/></dir></dir><dir name="Grid"><dir name="Settings"><file name="Columns.php" hash="9acfb2ec990f83a25142a35d0bc37989"/></dir></dir></dir><dir name="Resource"><dir name="Eav"><dir name="Mysql4"><dir name="Product"><file name="Collection.php" hash="02e45e6d6dd551431bb29be7cfd165f5"/></dir></dir></dir></dir><dir name="System"><dir name="Config"><dir name="Source"><dir name="Columns"><file name="Show.php" hash="d917b5fabc17371eca2701977f112ee6"/></dir><dir name="Sort"><file name="Direction.php" hash="23cb37d1af2dd75c3c9537adf90c1bc8"/></dir></dir></dir></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies/>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>TBT_Enhancedgrid</name>
4
+ <version>1.3.2.1</version>
5
  <stability>stable</stability>
6
  <license>OSL 3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
+ <summary>Improved some of the architecture to make the grid column handlers more expandable in the future.
10
+ + Resolved issue with Magento Community Edition 1.6+, 1.3.x and Magento Enterprise/Professional Editions 1.11+</summary>
11
  <description>Enhanced Grid is the most downloaded community-driven extension on Magento Connect with over 15,000 Magento stores world-wide running it. Enhanced Grid makes managing products much easier and more efficient for store administrators.</description>
12
  <notes>Improved some of the architecture to make the grid column handlers more expandable in the future, and resolved issue with Magento Community Edition 1.6+ and Magento Enterprise/Professional Editions 1.11+</notes>
13
  <authors><author><name>Jay</name><user>auto-converted</user><email>contact@wdca.ca</email></author><author><name>Jay</name><user>auto-converted</user><email>nelkaake@wdca.ca</email></author></authors>
14
  <date>2011-10-10</date>
15
+ <time>20:05:07</time>
16
+ <contents><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="tbt_enhancedgrid.xml" hash="d0dd492f38558072d5c0dad53703a6c6"/></dir><dir name="template"><dir name="tbt"><dir name="enhancedgrid"><dir name="catalog"><file name="product.phtml" hash="449dec037392f3910b9269a24b99e24a"/><dir name="product"><file name="grid.phtml" hash="8e39bb3abd59ef4ba12fdf4d725dda90"/></dir></dir></dir></dir></dir></dir></dir></dir></target><target name="mage"><dir name="js"><dir name="tbt"><dir name="enhancedgrid"><file name="egsupplemental.js" hash="da3aa882d47a41c4d2f7d0c48233ae1e"/><file name="enhancedgrid.js" hash="fcbbe08d942719a668d3536246664628"/><dir name="customfunctions"><file name="catalog_products.js" hash="db00553aa26aa6851f92f84447f3cd14"/></dir><dir name="resources"><dir name="css"><file name="enhancedgrid.css" hash="a219b0e656329f2407835dbe346f81d3"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="TBT_Enhancedgrid.xml" hash="85a6ca652ec3777aa244a78c1c4fdac4"/></dir></target><target name="magecommunity"><dir name="TBT"><dir name="Enhancedgrid"><dir name="Block"><dir name="Catalog"><file name="Product.php" hash="68048313967635cce72082d36afb1ac4"/><dir name="Product"><file name="Grid.php" hash="78c9b49ca889805299c9a7e3a369aa6b"/><dir name="Grid"><file name="Columns.php" hash="f84214fc43f665c79b92dc7a092b364f"/></dir></dir></dir><dir name="System"><file name="Html.php" hash="ae18224ae9a7e450e03ccf22612e3dde"/></dir><dir name="Widget"><file name="Loyalty.php" hash="d1f6919e6bda3e5c201e2b9cd2fb25f1"/><dir name="Grid"><file name="Column.php" hash="b360986bb6f20cb2f7af22bb383c909e"/><dir name="Column"><dir name="Filter"><file name="Category.php" hash="8eb68d6bdb28d08e4aa831f2609be421"/><file name="Image.php" hash="b1e25d3e8d03a0869e1c2edf5fcdd761"/></dir><dir name="Renderer"><file name="Action.php" hash="32c3917ad4c07942e9f0d003c6854b2b"/><file name="Category.php" hash="42eff0eac536ef4b511600b2bd1d2ceb"/><file name="Image.php" hash="ddac5ed4cc015c4dd256f172c802e9cf"/></dir></dir></dir></dir></dir><dir name="controllers"><dir name="Catalog"><file name="ProductController.php" hash="39ab9a7719710e1454d7f8b1ede4a104"/></dir></dir><dir name="etc"><file name="config.xml" hash="298fabe9e68c5693e46ec5e8c9d416cd"/><file name="system.xml" hash="5e18079f506dae5dc6627f41f1d7336c"/></dir><dir name="Helper"><file name="Data.php" hash="236773d2fc20ccc12702af8a41c5fe96"/><file name="Version.php" hash="f90fbcb7beffbe1ac6541f529df9b35b"/></dir><dir name="Model"><dir name="Collection"><dir name="Decorator"><file name="Abstract.php" hash="5358ef85d8ad82fef81e220ab5feec46"/></dir></dir><dir name="Product"><dir name="Collection"><dir name="Category"><file name="Decorator.php" hash="16fff625d09211e054e2caebbdd535ce"/></dir></dir><dir name="Grid"><dir name="Settings"><file name="Columns.php" hash="9acfb2ec990f83a25142a35d0bc37989"/></dir></dir></dir><dir name="Resource"><dir name="Eav"><dir name="Mysql4"><dir name="Product"><file name="Collection.php" hash="02e45e6d6dd551431bb29be7cfd165f5"/></dir></dir></dir></dir><dir name="System"><dir name="Config"><dir name="Source"><dir name="Columns"><file name="Show.php" hash="908fec18c7ce6865c7fb9022dd960b2c"/></dir><dir name="Sort"><file name="Direction.php" hash="23cb37d1af2dd75c3c9537adf90c1bc8"/></dir></dir></dir></dir></dir><dir name="sql"><dir name="enhancedgrid_setup"><file name="mysql4-install-1.0.0.0.php" hash="360399619e0f058a3ce865ab9fd78827"/></dir></dir></dir></dir></target></contents>
17
  <compatible/>
18
  <dependencies/>
19
  </package>