Commit e3ec2e15 by 冷斌

fix bug

parent fa59cdc9
......@@ -172,6 +172,13 @@ class AdminPaperAction extends AdministratorAction
// }else{
$data['level'] = intval($_POST['level']);
// }
$attache_id = '';
$attache_ids = explode('|', $_POST['attachment_ids']);
if (!empty($attache_ids)) {
$attache_id = array_pop(array_filter($attache_ids));
}
$data['attachment'] = $attache_id;
$data['reply_time'] = intval($_POST['reply_time']);
$data['exams_module_id'] = intval($_POST['exams_module_id']);
$data['exams_paper_title'] = t($_POST['exams_paper_title']);
......@@ -196,7 +203,7 @@ class AdminPaperAction extends AdministratorAction
}
exit;
}
$this->pageKeyList = ['exams_subject_id', 'exams_module_id', 'level', 'exams_paper_title', 'reply_time', 'exams_limit','best', 'is_rand', 'start_time', 'end_time', 'assembly_type', 'is_screen','price', 'show_user_group', 'sort', 'description'];
$this->pageKeyList = ['exams_subject_id', 'exams_module_id', 'level', 'exams_paper_title', 'reply_time', 'exams_limit','best', 'is_rand', 'start_time', 'end_time', 'assembly_type', 'is_screen','attachment', 'price', 'show_user_group', 'sort', 'description'];
$this->notEmpty = ['exams_paper_id', 'exams_subject_id', 'exams_module_id', 'level', 'exams_paper_title', 'reply_time'];
ob_start();
echo W('CategoryLevel', array('table' => 'exams_subject', 'id' => 'exams_subject_id'));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment