Amiral D. Posted September 8, 2014 Share Posted September 8, 2014 Hi everyone, We managed to update our store to 1.6 (https://www.mercicapitaine.fr) last week, but we found that date sort in backoffice tabs doesn't actually work. (See the screenshot attached) Are we the only one with this bug ? Or did we miss something ? Regards to all and specialy prestashop team for their great work, Amiral D. Link to comment Share on other sites More sharing options...
Amiral D. Posted September 8, 2014 Author Share Posted September 8, 2014 Up please ! Link to comment Share on other sites More sharing options...
Amiral D. Posted September 10, 2014 Author Share Posted September 10, 2014 Nobody with the same problem ? It's not very handy ... Link to comment Share on other sites More sharing options...
Amiral D. Posted September 15, 2014 Author Share Posted September 15, 2014 Are we the only ones with this bug ? Link to comment Share on other sites More sharing options...
MacRoy Posted September 15, 2014 Share Posted September 15, 2014 Hello! Are you saying that nothing happens at all when you click the up arrow or down arrow? For sorting by date inside the orders, for example. see image Regards MacRoy Link to comment Share on other sites More sharing options...
Amiral D. Posted September 15, 2014 Author Share Posted September 15, 2014 No, it's not this. When i try to, for example, select all orders from 01/09/2014 to 10/09/2014, i pick date with the calendar then press enter or "Search" next to it, nothing happens. Core is ignoring this filter when I use it. Link to comment Share on other sites More sharing options...
Amiral D. Posted September 17, 2014 Author Share Posted September 17, 2014 I've made some debug to find the problem, i face what it seems to be a PHP issue : On line 575 of classes/controllers/AdminController.php : foreach ($_POST as $key => $value) { if ($value === '') unset($this->context->cookie->{$prefix.$key}); elseif (stripos($key, $this->list_id.'Filter_') === 0) $this->context->cookie->{$prefix.$key} = !is_array($value) ? $value : serialize($value); elseif (stripos($key, 'submitFilter') === 0) $this->context->cookie->$key = !is_array($value) ? $value : serialize($value); } When i var_dump($this->context->cookie->{$prefix.$key}), it returns empty array values, assuming that $value is a date based array. Do someone can help me on this ? Link to comment Share on other sites More sharing options...
Amiral D. Posted September 18, 2014 Author Share Posted September 18, 2014 I tried today with a fresh new install, without anything, on local with wamp. Filtering orders by dates doesn't work. I can't be the only one facing the problem ... Link to comment Share on other sites More sharing options...
hipeq Posted September 22, 2014 Share Posted September 22, 2014 You are not the only one.. I have the same problem.... Just noticed it today and googled it.. arrived here.... Filtering orders by date does nothing for me... 1 Link to comment Share on other sites More sharing options...
yousseffakih Posted September 22, 2014 Share Posted September 22, 2014 j'ai trouver cet solution : On line 575 of classes/controllers/AdminController.php : if (isset($this->list_id)) { foreach ($_POST as $key => $value) { if($key=='orderFilter_a!date_add'){ continue; } if($key=='local_orderFilter_a!date_add'){ $key='orderFilter_a!date_add'; $valu= array(); foreach($value as $val){ $valu[]= implode('-', array_reverse(explode('/', $val))); } $value=$valu; } if ($value === '') unset($this->context->cookie->{$prefix.$key}); 1 Link to comment Share on other sites More sharing options...
yousseffakih Posted September 22, 2014 Share Posted September 22, 2014 (edited) Edited September 22, 2014 by yousseffakih (see edit history) Link to comment Share on other sites More sharing options...
Amiral D. Posted September 22, 2014 Author Share Posted September 22, 2014 I'll try tomorrow, where are the official dev's ? This is really important ... Link to comment Share on other sites More sharing options...
MacRoy Posted September 22, 2014 Share Posted September 22, 2014 (edited) You need to post it here. http://forge.prestashop.com/secure/Dashboard.jspa Regards MacRoy Edited September 22, 2014 by MacRoy (see edit history) Link to comment Share on other sites More sharing options...
Amiral D. Posted September 22, 2014 Author Share Posted September 22, 2014 Posted seconds ago : http://forge.prestashop.com/browse/PSCSX-3428 Link to comment Share on other sites More sharing options...
hipeq Posted September 24, 2014 Share Posted September 24, 2014 I tested.... works great.... thank you... Link to comment Share on other sites More sharing options...
Recommended Posts