OllyL Posted December 5, 2013 Share Posted December 5, 2013 (edited) Hi, I'm having an intermittent problem with the admin area. The problem effects all forms which use the table display widget with the filter controls at the top (orders, customers, products, etc.) Basically when we apply a filter and press the enter key then sometimes it will put you on page 2 even if you are currently looking at page 1. This is causing some confusion for our staff because it seems that there are no results when really they are just looking at the wrong page. Strangely the problem doesn't occur every time and it can both work, and then not work when the same filter terms are entered. Also it tends to occur when there is only 1 result back from the filter search, filters that return multiple results do not seem to have the problem EDIT: Also it seems to be Chrome related, struggling to reproduce on Firefox Has anyone else noticed this bug? Thanks, Olly Edited December 5, 2013 by OllyL (see edit history) Link to comment Share on other sites More sharing options...
topall Posted January 3, 2014 Share Posted January 3, 2014 (edited) I have the same problem. I'll let you know if i'll get any solutions. Edited January 3, 2014 by topall (see edit history) 1 Link to comment Share on other sites More sharing options...
OllyL Posted January 15, 2014 Author Share Posted January 15, 2014 Thanks topall Link to comment Share on other sites More sharing options...
vekia Posted January 15, 2014 Share Posted January 15, 2014 what ps version you use? Link to comment Share on other sites More sharing options...
OllyL Posted January 15, 2014 Author Share Posted January 15, 2014 v 1.5.6.0 Link to comment Share on other sites More sharing options...
vekia Posted January 16, 2014 Share Posted January 16, 2014 weirdy, i can't reproduce your issue i checked on several browsers - and everywhere works well Link to comment Share on other sites More sharing options...
topall Posted January 16, 2014 Share Posted January 16, 2014 I use PrestaShop™ 1.5.3.1 and I have exactly the same problem. Filters don't work properly and send you on the 2nd page. Link to comment Share on other sites More sharing options...
OllyL Posted January 16, 2014 Author Share Posted January 16, 2014 Chrome seems to be the worst culprit - it is definitely happening on Products / Orders list but I think the problem is applying wherever this datatable control is used. You have to apply a filter and clear it a couple of times (and try from page 1 and from other pages). I've noticed that once it happens it happens again more frequently Link to comment Share on other sites More sharing options...
samuel89 Posted March 21, 2014 Share Posted March 21, 2014 So how can this be fixed? Link to comment Share on other sites More sharing options...
PeterWesson Posted May 16, 2014 Share Posted May 16, 2014 Did you find a fix for this problem? Because it really drives me mad.. Presta v 1.5.6.0, can reproduce the bug in Chrome and Opera only.. Link to comment Share on other sites More sharing options...
PeterWesson Posted May 21, 2014 Share Posted May 21, 2014 So after some research and testing, I found out a solution that works for me.. in js/admin.js add just one line of code. key = window.event ? window.event.keyCode : e.which; if (key == 13) { e.preventDefault(); // Add this line getE(button).focus(); getE(button).click(); } 1 Link to comment Share on other sites More sharing options...
topall Posted May 21, 2014 Share Posted May 21, 2014 thanks man. it works. Your line of code should go into a function formSubmit(e, button), by the way, because i have different line numbers. thanks again. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now