{"action":"opened","issue":{"url":"https://api.github.com/repos/mistic100/jQuery-QueryBuilder/issues/386","repository_url":"https://api.github.com/repos/mistic100/jQuery-QueryBuilder","labels_url":"https://api.github.com/repos/mistic100/jQuery-QueryBuilder/issues/386/labels{/name}","comments_url":"https://api.github.com/repos/mistic100/jQuery-QueryBuilder/issues/386/comments","events_url":"https://api.github.com/repos/mistic100/jQuery-QueryBuilder/issues/386/events","html_url":"https://github.com/mistic100/jQuery-QueryBuilder/issues/386","id":184434640,"number":386,"title":"'data' from the 'rule' is retained even if the filter is changed to create a new rule","user":{"login":"boopathi-rs","id":3276036,"avatar_url":"https://avatars.githubusercontent.com/u/3276036?v=3","gravatar_id":"","url":"https://api.github.com/users/boopathi-rs","html_url":"https://github.com/boopathi-rs","followers_url":"https://api.github.com/users/boopathi-rs/followers","following_url":"https://api.github.com/users/boopathi-rs/following{/other_user}","gists_url":"https://api.github.com/users/boopathi-rs/gists{/gist_id}","starred_url":"https://api.github.com/users/boopathi-rs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boopathi-rs/subscriptions","organizations_url":"https://api.github.com/users/boopathi-rs/orgs","repos_url":"https://api.github.com/users/boopathi-rs/repos","events_url":"https://api.github.com/users/boopathi-rs/events{/privacy}","received_events_url":"https://api.github.com/users/boopathi-rs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-21T09:03:07Z","updated_at":"2016-10-21T09:03:07Z","closed_at":null,"body":"Please see my jfiddle - https://jsfiddle.net/boopathiramasamy/xuc5n4ar/19/\r\nI have taken builder-basic demo from your site. Added 'data' ( data: { container: 'user', isCustomData: 'true' }) to the rule (id=price) in rules_basic variable and filter variable. \r\n\r\n Now what I think can be a bug is, if I change the rule by selecting some other value from the dropdown then 'data' is retained for that rule as well. To reproduce, \r\n\r\n1. Click on 'Get Rules'\r\n2. Notice 'data' is present for price rule.\r\n3. Now change price to category\r\n4. click on 'Get Rules'\r\n5. Notice 'data' is present for category rule as well. Shouldn't data be dropped for category rule because there is no data for category in filter?\r\n\r\nThis issue does not happen if I delete the existing price rule and create a new rule for category. Can this be a bug? Or am I doing something wrong?\r\n\r\nI think I can work around by not adding 'data' to the rules_basic for price rule. But I do not want to do this because I am displaying what was submitted earlier by the user.\r\n"}}
{"actor":{"display_login":"boopathi-rs"}}