Also do not overwrite VIA when clicking green Button
这个提交包含在:
父节点
a5617d2876
当前提交
6af065185e
共有 1 个文件被更改,包括 22 次插入 和 15 次删除
|
|
@ -341,11 +341,18 @@ class Logbookadvanced_model extends CI_Model {
|
||||||
if(!$this->user_model->authorize(2)) {
|
if(!$this->user_model->authorize(2)) {
|
||||||
return array('message' => 'Error');
|
return array('message' => 'Error');
|
||||||
} else {
|
} else {
|
||||||
|
if ($method != '') {
|
||||||
$data = array(
|
$data = array(
|
||||||
'COL_QSLSDATE' => date('Y-m-d H:i:s'),
|
'COL_QSLSDATE' => date('Y-m-d H:i:s'),
|
||||||
'COL_QSL_SENT' => $sent,
|
'COL_QSL_SENT' => $sent,
|
||||||
'COL_QSL_SENT_VIA' => $method
|
'COL_QSL_SENT_VIA' => $method
|
||||||
);
|
);
|
||||||
|
} else {
|
||||||
|
$data = array(
|
||||||
|
'COL_QSLSDATE' => date('Y-m-d H:i:s'),
|
||||||
|
'COL_QSL_SENT' => $sent,
|
||||||
|
);
|
||||||
|
}
|
||||||
$this->db->where_in('COL_PRIMARY_KEY', json_decode($ids, true));
|
$this->db->where_in('COL_PRIMARY_KEY', json_decode($ids, true));
|
||||||
$this->db->update($this->config->item('table_name'), $data);
|
$this->db->update($this->config->item('table_name'), $data);
|
||||||
|
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用