County lookup only requires state

This alters the county lookup API call to only require that the "state"
query parameter be populated
This commit is contained in:
Aurelia Fenderson-Peters
2025-05-21 10:40:33 -05:00
parent 673c7ab4a4
commit f9e4272dde

View File

@@ -202,7 +202,7 @@ class Lookup extends CI_Controller {
public function get_county() {
$json = [];
if(!empty($this->security->xss_clean($this->input->get("query")))) {
if(!empty($this->security->xss_clean($this->input->get("state")))) {
$county = $this->security->xss_clean($this->input->get("state"));
$cleanedcounty = explode('(', $county);
$cleanedcounty = trim($cleanedcounty[0]);