SpadarLogin - Version 0.1.2

Version Notes

* Login on the "order view" pages is allowed by default, but can be turned off in configs

* Customer view window is changed

!!! 1.4.x branch compatibility fix

Download this release

Release Info

Developer Magento Core Team
Extension SpadarLogin
Version 0.1.2
Comparing to
See all releases


Code changes from version 0.1.1 to 0.1.2

app/code/community/Spadar/Login/Helper/Button.php CHANGED
@@ -21,7 +21,7 @@ class Spadar_Login_Helper_Button extends Mage_Core_Helper_Abstract
21
  {
22
  return array(
23
  'label' => $this->__('Log in customer'),
24
- 'onclick' => 'popWin(\''.Mage::getModel('adminhtml/url')->getUrl('spadarloginadmin/', array('id' => $this->getCustomerId())).'\', \'customer\');',
25
  );
26
  }
27
 
21
  {
22
  return array(
23
  'label' => $this->__('Log in customer'),
24
+ 'onclick' => 'window.open(\''.Mage::getModel('adminhtml/url')->getUrl('spadarloginadmin/', array('id' => $this->getCustomerId())).'\', \'customer\');',
25
  );
26
  }
27
 
app/code/community/Spadar/Login/Model/Mysql4/Login.php CHANGED
@@ -27,6 +27,8 @@ class Spadar_Login_Model_Mysql4_Login extends Mage_Core_Model_Mysql4_Abstract
27
 
28
  public function truncate()
29
  {
30
- $this->_getWriteAdapter()->truncateTable($this->getMainTable());
 
 
31
  }
32
- }
27
 
28
  public function truncate()
29
  {
30
+ $this->_getWriteAdapter()->truncate($this->getMainTable());
31
+
32
+ return $this;
33
  }
34
+ }
app/code/community/Spadar/Login/etc/config.xml CHANGED
@@ -19,7 +19,7 @@
19
  <config>
20
  <modules>
21
  <Spadar_Login>
22
- <version>0.1.1</version>
23
  </Spadar_Login>
24
  </modules>
25
 
@@ -133,7 +133,7 @@
133
  <default>
134
  <customer>
135
  <login>
136
- <order_view_display>0</order_view_display>
137
  </login>
138
  </customer>
139
  </default>
19
  <config>
20
  <modules>
21
  <Spadar_Login>
22
+ <version>0.1.2</version>
23
  </Spadar_Login>
24
  </modules>
25
 
133
  <default>
134
  <customer>
135
  <login>
136
+ <order_view_display>1</order_view_display>
137
  </login>
138
  </customer>
139
  </default>
package.xml CHANGED
@@ -1,22 +1,22 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>SpadarLogin</name>
4
- <version>0.1.1</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Login as Customer</summary>
10
  <description>Allows admin users login as customers from admin</description>
11
- <notes>+Admin users can login as customers from "customer view" pages in admin
12
 
13
- +There is an option to allow login as a customer right on the "order view" pages in admin
14
 
15
- +There is an access control option. Admin can assign to a specific role whether role users can login as customers.</notes>
16
  <authors><author><name>Yury Ksenevich</name><user>auto-converted</user><email>yury@spadar.com</email></author></authors>
17
- <date>2012-02-09</date>
18
- <time>18:59:34</time>
19
- <contents><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="spadarlogin.xml" hash="f470c1380305439bf686d7059aab80fa"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Spadar_Login.xml" hash="f785705a056d3d219ca3b8d0def2236a"/></dir></target><target name="magecommunity"><dir name="Spadar"><dir name="Login"><dir name="controllers"><dir name="Adminhtml"><file name="IndexController.php" hash="c92575e25cf74732e384c9c6bc32d3c0"/></dir><file name="IndexController.php" hash="b07532165c256e0c7ac7098ba04651dd"/></dir><dir name="etc"><file name="config.xml" hash="20c636a3d34c4c8087c6208feb5074bb"/><file name="system.xml" hash="2885913865982dbee80712c4584c3562"/></dir><dir name="Helper"><file name="Button.php" hash="fd6b89013dd8b1da3ad3be44cf1fb739"/><file name="Data.php" hash="fe708d7516fddc793b2451446b9d3c61"/></dir><dir name="Model"><dir name="Mysql4"><file name="Login.php" hash="1fe212ec6ada70e72a821cc0b533dcd6"/></dir><file name="Login.php" hash="f5023f50d57c0eb6c6b88f380752b14d"/></dir><dir name="sql"><dir name="spadarlogin_setup"><file name="mysql4-install-0.1.0.php" hash="25af0280aa8fc427d93a352aad6f4315"/></dir></dir></dir></dir></target></contents>
20
  <compatible/>
21
  <dependencies/>
22
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>SpadarLogin</name>
4
+ <version>0.1.2</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Login as Customer</summary>
10
  <description>Allows admin users login as customers from admin</description>
11
+ <notes>* Login on the "order view" pages is allowed by default, but can be turned off in configs
12
 
13
+ * Customer view window is changed
14
 
15
+ !!! 1.4.x branch compatibility fix</notes>
16
  <authors><author><name>Yury Ksenevich</name><user>auto-converted</user><email>yury@spadar.com</email></author></authors>
17
+ <date>2012-06-14</date>
18
+ <time>20:51:12</time>
19
+ <contents><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="spadarlogin.xml" hash="f470c1380305439bf686d7059aab80fa"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Spadar_Login.xml" hash="f785705a056d3d219ca3b8d0def2236a"/></dir></target><target name="magecommunity"><dir name="Spadar"><dir name="Login"><dir name="controllers"><dir name="Adminhtml"><file name="IndexController.php" hash="c92575e25cf74732e384c9c6bc32d3c0"/></dir><file name="IndexController.php" hash="b07532165c256e0c7ac7098ba04651dd"/></dir><dir name="etc"><file name="config.xml" hash="108622d6fa79f87557de79ff1f72c6d7"/><file name="system.xml" hash="2885913865982dbee80712c4584c3562"/></dir><dir name="Helper"><file name="Button.php" hash="01ea50e464d5fe588e947d65e663b542"/><file name="Data.php" hash="fe708d7516fddc793b2451446b9d3c61"/></dir><dir name="Model"><dir name="Mysql4"><file name="Login.php" hash="9d5d6edb171a4110faa474e238f6f7cc"/></dir><file name="Login.php" hash="f5023f50d57c0eb6c6b88f380752b14d"/></dir><dir name="sql"><dir name="spadarlogin_setup"><file name="mysql4-install-0.1.0.php" hash="25af0280aa8fc427d93a352aad6f4315"/></dir></dir></dir></dir></target></contents>
20
  <compatible/>
21
  <dependencies/>
22
  </package>