redirect if one wants to try print labels from other station

This commit is contained in:
int2001
2023-07-30 17:25:52 +00:00
parent bcf3aecd1a
commit e957402b37

View File

@@ -98,11 +98,16 @@ class Labels extends CI_Controller {
public function print($station_id) {
$clean_id = xss_clean($station_id);
$this->load->model('stations');
if ($this->stations->check_station_is_accessible($station_id)) {
$this->load->model('labels_model');
$result = $this->labels_model->export_printrequested($clean_id);
$this->load->model('labels_model');
$result = $this->labels_model->export_printrequested($clean_id);
$this->prepareLabel($result);
$this->prepareLabel($result);
} else {
redirect('labels');
}
}
function prepareLabel($qsos, $jscall = false) {