Issue using multiple list options with "get options from MySQL query" with advanced filter refresh

6 posts by 2 authors in: Forums > CMS Builder
Last Post: February 12, 2013   (RSS)

By Dave - February 9, 2013

Hi Steve, 

Thanks for the report.  First up, are you running a recent version?  We made some improvements to how those fields work a few versions ago.  If you're not running a recent version, try upgrading.

If that doesn't solve it, feel free to email CMS & FTP login details to me at dave@interactivetools.com along with steps to reproduce and I can take a look.  Note: Don't post login details to the forum.

Hope that helps!  Let me know how it goes.

Dave Edis - Senior Developer
interactivetools.com

By Steve99 - February 9, 2013

Hi Dave,

This install is version 2.16. By any chance would that version have the updates on those fields?

On this install we hired your company last year for a customized version of "Simple Cart" with authorize.net AIM. Updating the CMS itself shouldn't affect that, correct?

I have a staging install with everything mirrored (files and database) so I suppose I can just upgrade and revert if for some reason I need to. Please let me know if 2.16 has those updates you mentioned and if you think I should be fine with the cart. I'll wait to pull the trigger on upgrading until I hear back even though everything would probably be just fine :)

Thank you for the quick response. Great software and support, that's why we all love Interactive Tools.

- Steve

Hi Dave,

I upgraded to CMSB 2.51 and the issue remains. I'll be in contact via email with info. Thanks.

Steve

By Dave - February 11, 2013

Hi Steve, 

We've had the occasional odd reports related to this over the years.  I did a fair bit of research on this again today and wasn't able to find anything conclusive.  As best as I can tell it's something to do with how jquery is updating the browser content.  The correct content is returned to the browser, and when I debug it and add some javascript to log the content of that field it actually reports it as being updated even though it doesn't show that way in the browser view.

Anyways, I commented some previous debug code that works around it in: /lib/menus/default/edit_functions.js - updateListFieldOptions()

  $.ajax({
    async: false, 

Adding or uncommenting that setting causes the browser to update the fields correctly by waiting for one field to be updated before attempting to update the next one.  The one difference is it will lock the browser while loading the new values, usually just for a fraction of a second, though.

Can you give that a try and let me know how it works for you?  I'll add this code the codebase for 2.52.

Let me know any questions or additional issues.  Thanks!

Dave Edis - Senior Developer
interactivetools.com

Hi Dave,

That took care of it. All is well. Thank you very much!

- Steve