Version Notes
bug fix: unanswered questions per product on the search report
Download this release
Release Info
Developer | NanoRep |
Extension | NanoRep_Widgets_1_1_0 |
Version | 2.0.1 |
Comparing to | |
See all releases |
Code changes from version 2.0.0 to 2.0.1
app/code/local/NanoRep/Widgets/Block/Adminhtml/Answer/Grid.php
CHANGED
@@ -87,7 +87,7 @@ class NanoRep_Widgets_Block_Adminhtml_Answer_Grid extends Mage_Adminhtml_Block_W
|
|
87 |
, array('answer_title_with_query' => 'main_table.answer_title_with_query', 'answer_title' => 'main_table.answer_title', 'query' => 'main_table.query'))
|
88 |
;
|
89 |
$collection->getSelect()->order('answer_id', 'ASC');
|
90 |
-
$collection->getSelect()->group(array('main_table.answer_id'));
|
91 |
|
92 |
$filter = $this->getParam($this->getVarNameFilter(), null);
|
93 |
|
87 |
, array('answer_title_with_query' => 'main_table.answer_title_with_query', 'answer_title' => 'main_table.answer_title', 'query' => 'main_table.query'))
|
88 |
;
|
89 |
$collection->getSelect()->order('answer_id', 'ASC');
|
90 |
+
$collection->getSelect()->group(array('main_table.answer_id', 'main_table.product_id'));
|
91 |
|
92 |
$filter = $this->getParam($this->getVarNameFilter(), null);
|
93 |
|
app/code/local/NanoRep/Widgets/Block/Adminhtml/Widget/Grid/Column/Renderer/Answer/Title.php
CHANGED
@@ -16,12 +16,12 @@ class NanoRep_Widgets_Block_Adminhtml_Widget_Grid_Column_Renderer_Answer_Title e
|
|
16 |
$value_arr = explode(':::', $value);
|
17 |
if(count($value_arr) > 0){
|
18 |
if(count($value_arr) > 1 && $value_arr[0] == "<Unanswered questions>" && $value_arr[1] != ""){
|
19 |
-
$out[] = '<a href="#" onclick="$(\'answer_query_'.$row->
|
20 |
}
|
21 |
$out[] = htmlspecialchars($value_arr[0]);
|
22 |
if(count($value_arr) > 1 && $value_arr[0] == "<Unanswered questions>" && $value_arr[1] != ""){
|
23 |
$out[] = '</a>';
|
24 |
-
$out[] = '<div id="answer_query_'.$row->
|
25 |
$queries_arr = explode("###", $value_arr[1]);
|
26 |
foreach($queries_arr as $query){
|
27 |
$out[] = $query;
|
@@ -34,4 +34,4 @@ class NanoRep_Widgets_Block_Adminhtml_Widget_Grid_Column_Renderer_Answer_Title e
|
|
34 |
}
|
35 |
return join('',$out);
|
36 |
}
|
37 |
-
}
|
16 |
$value_arr = explode(':::', $value);
|
17 |
if(count($value_arr) > 0){
|
18 |
if(count($value_arr) > 1 && $value_arr[0] == "<Unanswered questions>" && $value_arr[1] != ""){
|
19 |
+
$out[] = '<a href="#" onclick="$(\'answer_query_'.$row->getEntityId().'_place_holder\').toggle();">';
|
20 |
}
|
21 |
$out[] = htmlspecialchars($value_arr[0]);
|
22 |
if(count($value_arr) > 1 && $value_arr[0] == "<Unanswered questions>" && $value_arr[1] != ""){
|
23 |
$out[] = '</a>';
|
24 |
+
$out[] = '<div id="answer_query_'.$row->getEntityId().'_place_holder" style="display:none;">';
|
25 |
$queries_arr = explode("###", $value_arr[1]);
|
26 |
foreach($queries_arr as $query){
|
27 |
$out[] = $query;
|
34 |
}
|
35 |
return join('',$out);
|
36 |
}
|
37 |
+
}
|
app/code/local/NanoRep/Widgets/etc/config.xml
CHANGED
@@ -12,7 +12,7 @@
|
|
12 |
<config>
|
13 |
<modules>
|
14 |
<NanoRep_Widgets>
|
15 |
-
<version>2.0.
|
16 |
</NanoRep_Widgets>
|
17 |
</modules>
|
18 |
<global>
|
12 |
<config>
|
13 |
<modules>
|
14 |
<NanoRep_Widgets>
|
15 |
+
<version>2.0.1</version>
|
16 |
</NanoRep_Widgets>
|
17 |
</modules>
|
18 |
<global>
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>NanoRep_Widgets_1_1_0</name>
|
4 |
-
<version>2.0.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.gnu.org/licenses/gpl.html">GPL v3.0</license>
|
7 |
<channel>community</channel>
|
@@ -45,11 +45,12 @@ Agents get a 360
|
|
45 |
degree view of customers’ activity before
|
46 |
working on cases.
|
47 |
</description>
|
48 |
-
<notes>
|
|
|
49 |
<authors><author><name>NanoRep</name><user>avivnanore</user><email>aviv@nanorep.com</email></author></authors>
|
50 |
<date>2014-08-20</date>
|
51 |
-
<time>
|
52 |
-
<contents><target name="magelocal"><dir name="NanoRep"><dir name="Widgets"><dir name="Block"><dir name="Adminhtml"><dir name="Answer"><dir name="Grid"><file name="Export.php" hash="3c934f7ff615029ebcee9736273c660e"/></dir><file name="Grid.php" hash="
|
53 |
<compatible/>
|
54 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
55 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>NanoRep_Widgets_1_1_0</name>
|
4 |
+
<version>2.0.1</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.gnu.org/licenses/gpl.html">GPL v3.0</license>
|
7 |
<channel>community</channel>
|
45 |
degree view of customers’ activity before
|
46 |
working on cases.
|
47 |
</description>
|
48 |
+
<notes>bug fix: unanswered questions per product on the search report
|
49 |
+
</notes>
|
50 |
<authors><author><name>NanoRep</name><user>avivnanore</user><email>aviv@nanorep.com</email></author></authors>
|
51 |
<date>2014-08-20</date>
|
52 |
+
<time>21:25:04</time>
|
53 |
+
<contents><target name="magelocal"><dir name="NanoRep"><dir name="Widgets"><dir name="Block"><dir name="Adminhtml"><dir name="Answer"><dir name="Grid"><file name="Export.php" hash="3c934f7ff615029ebcee9736273c660e"/></dir><file name="Grid.php" hash="e9a6ba6dd9d946784ec710cfeddf9c09"/></dir><file name="Answer.php" hash="2c1b7c5dfdd1485b6c3cd8eb2c134bcd"/><file name="Mynanorep.php" hash="a7aea34f919bc75ca9a2d374a115b3fa"/><dir name="Order"><dir name="Grid"><file name="Export.php" hash="d2e9e76282057ff241fa31477e503f5f"/></dir><file name="Grid.php" hash="b2e2407527e4c9271d5ba20d3ccc786f"/><dir name="View"><file name="Queries.php" hash="7c1c21f3cc8abc848fdf091c8b05d4cf"/></dir></dir><file name="Order.php" hash="39ebfd2fe23db490046ae8e324901b72"/><dir name="Widget"><dir name="Grid"><dir name="Column"><dir name="Renderer"><dir name="Answer"><dir name="Body"><file name="Pretty.php" hash="0a7d01f7ff96b9bace44256e82ab047e"/></dir><file name="Body.php" hash="32323c59c38fc206f2419818ff8e3b90"/><dir name="Title"><file name="Pretty.php" hash="8719656b201622b2609eaeb287ad25ca"/></dir><file name="Title.php" hash="115ee0a85937406fa07e8d439f1e3dbb"/></dir><dir name="Questions"><file name="Pretty.php" hash="3ffd9f82f2c5c2696eed0f35f7109b9e"/></dir><file name="Questions.php" hash="1a979d2272acde87c1e907aa29816c6c"/><dir name="Results"><file name="Pretty.php" hash="54da8e4d7dad33c6ce3ad0ced6e66089"/></dir><file name="Results.php" hash="7ed187664b1883e7ce9890a835e237d9"/></dir></dir></dir></dir></dir><file name="Customerhistoryjson.php" hash="2e6a8dc4c0e5c49639ff088ac3910009"/><file name="Embed.php" hash="d2308942918ab58b9052c4619118afa6"/><file name="Events.php" hash="5f5f965d626c8b73c072db1fca506d4c"/><file name="Float.php" hash="e51c028ad72498a96dcd1b38ae2f18f7"/><file name="Header.php" hash="740ec34301d3738cbd054ed502145868"/><file name="Success.php" hash="9383181f50edf203c457872412de7a0c"/></dir><dir name="Helper"><file name="Data.php" hash="f16dda0d1ce9c3e1c2b367c06c88c084"/></dir><dir name="Model"><file name="Answer.php" hash="3931d7299a746e0ac90a6cae4a154982"/><file name="History.php" hash="0ffa4f8d5366abc1f7702e101cc5a90f"/><file name="Observer.php" hash="dec7cbc2f825f40ec18737b6bead79aa"/><file name="Query.php" hash="c4eaf10c4bae492d782b552550570215"/><dir name="Resource"><dir name="Answer"><file name="Collection.php" hash="d48492102f2c1534f637675d523ffbd5"/></dir><file name="Answer.php" hash="0f79604579c93d4315b62cc23d595a53"/><dir name="Query"><file name="Collection.php" hash="8fd53665b19f3f1bc2cc5bd823aff5a1"/></dir><file name="Query.php" hash="ccc5ae9e2e2f144c37fef2245033911c"/><file name="Setup.php" hash="812ef9ae3c38fe84eda2c702890faac5"/></dir><file name="Session.php" hash="63b7e34c1782e8e376936e7f196b0353"/><dir name="System"><dir name="Config"><dir name="Source"><file name="Attribute.php" hash="03529194354c0557a881305a69158fa5"/><file name="FloatWidgetActivePages.php" hash="e1f7f28f4e3e13ba13e4293eed61a943"/><file name="OrdersStatusActivePages.php" hash="f098536503386289102acfcc19d016a6"/><file name="ProductIdAttribute.php" hash="03c69b051e8ba54e47f87b6f1495c19e"/></dir></dir></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="AnswerController.php" hash="c78297d83f113e8e01cc6b39158bdc66"/><file name="MynanorepController.php" hash="b411ddc154ef98ca3f568daab73fd003"/><file name="OrderController.php" hash="b5484dde49a2ebbcc8b0933bcad4c0bb"/></dir><file name="IndexController.php" hash="0b89743031ac153c1e4e99e40f145c16"/><file name="QueryController.php" hash="58145cd9ff89c0bc7ff078c0d11b4d83"/></dir><dir name="etc"><file name="adminhtml.xml" hash="6b796ffd37d982a516efac2d8870c4dc"/><file name="config.xml" hash="8c167e09687f551a5a94c4304fa096cf"/><file name="system.xml" hash="22d7d892bb3c08dc416f38b64ad1c2eb"/></dir><dir name="sql"><dir name="nanorepwidgets_setup"><file name="install-2.0.0.php" hash="df808cb581bb4e2cf8a03687c2969d1b"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="NanoRep_Widgets.xml" hash="913abeaceca820e4026066729e8702aa"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="nanorepwidgets.xml" hash="420bdca5200d6ada621629c3fb222035"/></dir><dir name="template"><dir name="nanorepwidgets"><file name="cdc.phtml" hash="587dab4d48df5773746b7ddff0a0165b"/><file name="embed.phtml" hash="aa5aa60733402579a3e15ca08098075d"/><file name="events.phtml" hash="ff40178eae7b67468f689543b9146c3a"/><file name="float.phtml" hash="f0ede0529726201e76f94263a62222d5"/><file name="header.phtml" hash="496642ef60ea17dee20137da26179e5c"/><file name="success.phtml" hash="609ac352097e81029376c1791c24fbb1"/></dir></dir></dir></dir><dir name="rwd"><dir name="default"><dir name="layout"><file name="nanorepwidgets.xml" hash="420bdca5200d6ada621629c3fb222035"/></dir><dir name="template"><dir name="nanorepwidgets"><file name="cdc.phtml" hash="587dab4d48df5773746b7ddff0a0165b"/><file name="embed.phtml" hash="aa5aa60733402579a3e15ca08098075d"/><file name="events.phtml" hash="ff40178eae7b67468f689543b9146c3a"/><file name="float.phtml" hash="f0ede0529726201e76f94263a62222d5"/><file name="header.phtml" hash="496642ef60ea17dee20137da26179e5c"/><file name="success.phtml" hash="609ac352097e81029376c1791c24fbb1"/></dir></dir></dir></dir></dir><dir name="adminhtml"><dir><dir name="default"><dir name="default"><dir name="template"><dir name="nanorepwidgets"><file name="mynanorep.phtml" hash="ecdbcbdfbe5c4e4ed18aaf74492b5adb"/><dir name="order"><dir name="view"><file name="queries.phtml" hash="0c4e8fdd10069b2c14bb2096585eb866"/><dir name="tab"><file name="info.phtml" hash="b7d4f357da6def4bf1d6889ee95f45bb"/></dir></dir></dir></dir></dir></dir></dir></dir><dir name="default"><dir name="default"><dir name="layout"><file name="nanorepwidgets.xml" hash="cc7420519fe49a85f9f93cec3064a835"/></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="nanorepwidgets"><file name="head.css" hash="1779a092e2c2a771a0725e1cdd682a46"/><file name="head.js" hash="8bafa94d8432b42e2e6e7f6af91db39e"/></dir></dir></dir><dir name="rwd"><dir name="default"><dir name="nanorepwidgets"><file name="head.css" hash="1779a092e2c2a771a0725e1cdd682a46"/><file name="head.js" hash="8bafa94d8432b42e2e6e7f6af91db39e"/></dir></dir></dir></dir></target></contents>
|
54 |
<compatible/>
|
55 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
56 |
</package>
|