diff --git a/application/controllers/Labels.php b/application/controllers/Labels.php index 387cb91c..008ec762 100644 --- a/application/controllers/Labels.php +++ b/application/controllers/Labels.php @@ -133,7 +133,7 @@ class Labels extends CI_Controller { public function printids() { $ids = xss_clean(json_decode($this->input->post('id'))); $offset = xss_clean($this->input->post('startat')); - $grid = xss_clean($this->input->post('grid') ?? 0); + $grid = $this->input->post('grid') === "true" ? 1 : 0; $this->load->model('labels_model'); $result = $this->labels_model->export_printrequestedids($ids); diff --git a/application/views/labels/startatform.php b/application/views/labels/startatform.php index 33c93455..a9de4d26 100644 --- a/application/views/labels/startatform.php +++ b/application/views/labels/startatform.php @@ -1,6 +1,6 @@