Vizzuality/cartodb — Issue #240: SQL apply problems
Author: xavijam
Created: 2011-11-02 11:00:55+00:00
State: open

If you open up your SQL popup and enter in something lets say

SELECT * FROM TABLE WHERE text = 'ABC';

And you click apply it pushes the SQL statement and runs the query. If you go to the map you see those results.

The BUG happens when if I am say on the map popup and I type
SELECT * FROM TABLE WHERE text = 'ABC';
I click APPLY and the query runs then I change in my popup = '123' lets say and do NOT click apply and click on the table tab it automatically takes the value from the text area and not what was previously applied.

So the solution would be to when apply set a javascript value to use as the sql statement and not pull directly from the textarea.