redirect if one wants to try print labels from other station

这个提交包含在:
int2001 2023-07-30 17:25:52 +00:00
父节点 bcf3aecd1a
当前提交 e957402b37
找不到此签名对应的密钥
GPG 密钥 ID: DFB1C13CD2DB037B

查看文件

@ -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) {