{"issue":{"state":"open","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"user":{"avatar_url":"https://secure.gravatar.com/avatar/90d58a6286647fa4fdae73328f191d95?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"90d58a6286647fa4fdae73328f191d95","url":"https://api.github.com/users/xavijam","login":"xavijam","id":132146},"milestone":null,"labels":[],"assignee":null,"updated_at":"2011-11-02T11:00:55Z","comments":0,"closed_at":null,"url":"https://api.github.com/repos/Vizzuality/cartodb/issues/240","body":"If you open up your SQL popup and enter in something lets say\r\n\r\nSELECT * FROM TABLE WHERE text = 'ABC';\r\n\r\nAnd you click apply it pushes the SQL statement and runs the query. If you go to the map you see those results.\r\n\r\nThe BUG happens when if I am say on the map popup and I type\r\nSELECT * FROM TABLE WHERE text = 'ABC';\r\nI 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.\r\n\r\nSo the solution would be to when apply set a javascript value to use as the sql statement and not pull directly from the textarea.","html_url":"https://github.com/Vizzuality/cartodb/issues/240","title":"SQL apply problems","number":240,"id":2120162,"created_at":"2011-11-02T11:00:55Z"},"action":"opened"}