redirect if one wants to try print labels from other station
这个提交包含在:
父节点
bcf3aecd1a
当前提交
e957402b37
共有 1 个文件被更改,包括 8 次插入 和 3 次删除
|
|
@ -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) {
|
||||
|
|
|
|||
正在加载…
在新工单中引用