{"action":"created","issue":{"url":"https://api.github.com/repos/OpenTreeMap/otm-core/issues/2508","repository_url":"https://api.github.com/repos/OpenTreeMap/otm-core","labels_url":"https://api.github.com/repos/OpenTreeMap/otm-core/issues/2508/labels{/name}","comments_url":"https://api.github.com/repos/OpenTreeMap/otm-core/issues/2508/comments","events_url":"https://api.github.com/repos/OpenTreeMap/otm-core/issues/2508/events","html_url":"https://github.com/OpenTreeMap/otm-core/pull/2508","id":133313914,"number":2508,"title":"Conditionally disable collection UDF date search fields","user":{"login":"jwalgran","id":17363,"avatar_url":"https://avatars.githubusercontent.com/u/17363?v=3","gravatar_id":"","url":"https://api.github.com/users/jwalgran","html_url":"https://github.com/jwalgran","followers_url":"https://api.github.com/users/jwalgran/followers","following_url":"https://api.github.com/users/jwalgran/following{/other_user}","gists_url":"https://api.github.com/users/jwalgran/gists{/gist_id}","starred_url":"https://api.github.com/users/jwalgran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwalgran/subscriptions","organizations_url":"https://api.github.com/users/jwalgran/orgs","repos_url":"https://api.github.com/users/jwalgran/repos","events_url":"https://api.github.com/users/jwalgran/events{/privacy}","received_events_url":"https://api.github.com/users/jwalgran/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/OpenTreeMap/otm-core/labels/in%20review","name":"in review","color":"ededed"}],"state":"open","locked":false,"assignee":{"login":"RickMohr","id":2162993,"avatar_url":"https://avatars.githubusercontent.com/u/2162993?v=3","gravatar_id":"","url":"https://api.github.com/users/RickMohr","html_url":"https://github.com/RickMohr","followers_url":"https://api.github.com/users/RickMohr/followers","following_url":"https://api.github.com/users/RickMohr/following{/other_user}","gists_url":"https://api.github.com/users/RickMohr/gists{/gist_id}","starred_url":"https://api.github.com/users/RickMohr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RickMohr/subscriptions","organizations_url":"https://api.github.com/users/RickMohr/orgs","repos_url":"https://api.github.com/users/RickMohr/repos","events_url":"https://api.github.com/users/RickMohr/events{/privacy}","received_events_url":"https://api.github.com/users/RickMohr/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2016-02-12T18:44:05Z","updated_at":"2016-02-16T19:19:01Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/OpenTreeMap/otm-core/pulls/2508","html_url":"https://github.com/OpenTreeMap/otm-core/pull/2508","diff_url":"https://github.com/OpenTreeMap/otm-core/pull/2508.diff","patch_url":"https://github.com/OpenTreeMap/otm-core/pull/2508.patch"},"body":"The advanced search UI was allowing the selection of a date range for stewardship/alerts without selecting a type of either stewardship or alert. We don't support searching across collection UDF types, so this resulted in the code generating invalid filter query strings.\r\n\r\nThis commit addresses the issue by following the existing patterns in `udfcSearch.js` and disabling the date fields until both a model and a CUDF type have been selected.\r\n\r\n##### Testing\r\n\r\nThe date fields at the end of the \"Tree Care\" section of the advanced search bar should be disabled until values have been selected from the first two dropdowns.\r\n\r\n<img width=\"970\" alt=\"screen shot 2016-02-12 at 11 38 28 am\" src=\"https://cloud.githubusercontent.com/assets/17363/13016652/515b3808-d17d-11e5-8f77-2358aba9ba78.png\">\r\n\r\n<img width=\"971\" alt=\"screen shot 2016-02-12 at 11 38 39 am\" src=\"https://cloud.githubusercontent.com/assets/17363/13016663/5d20b8a2-d17d-11e5-892c-c866afcc97ec.png\">\r\n\r\n\r\n---\r\n\r\nConnects to #2497 "},"comment":{"url":"https://api.github.com/repos/OpenTreeMap/otm-core/issues/comments/184838313","html_url":"https://github.com/OpenTreeMap/otm-core/pull/2508#issuecomment-184838313","issue_url":"https://api.github.com/repos/OpenTreeMap/otm-core/issues/2508","id":184838313,"user":{"login":"RickMohr","id":2162993,"avatar_url":"https://avatars.githubusercontent.com/u/2162993?v=3","gravatar_id":"","url":"https://api.github.com/users/RickMohr","html_url":"https://github.com/RickMohr","followers_url":"https://api.github.com/users/RickMohr/followers","following_url":"https://api.github.com/users/RickMohr/following{/other_user}","gists_url":"https://api.github.com/users/RickMohr/gists{/gist_id}","starred_url":"https://api.github.com/users/RickMohr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RickMohr/subscriptions","organizations_url":"https://api.github.com/users/RickMohr/orgs","repos_url":"https://api.github.com/users/RickMohr/repos","events_url":"https://api.github.com/users/RickMohr/events{/privacy}","received_events_url":"https://api.github.com/users/RickMohr/received_events","type":"User","site_admin":false},"created_at":"2016-02-16T19:19:01Z","updated_at":"2016-02-16T19:19:01Z","body":"+1, works well."}}