next up previous contents
Next: Bug2 Up: 除錯 Previous: 除錯   Contents

Bug1

  1. 編輯點選「審查中」或「編輯中」,出現以下錯誤訊息。
    DB Error: Unknown column 'ea.user_id' in 'where clause'
    
  2. 除錯
    [root@csie5 ojs-isend]# diff -urNwbBE ../ojs-2.4.2/classes/submission/editor/EditorSubmissionDAO.inc.php classes/submission/editor/EditorSubmissionDAO.inc.php
    --- ../ojs-2.4.2/classes/submission/editor/EditorSubmissionDAO.inc.php	2013-03-05 07:53:15.000000000 +0800
    +++ classes/submission/editor/EditorSubmissionDAO.inc.php	2014-05-12 14:26:37.222252992 +0800
    @@ -322,7 +322,7 @@
     		}
     
     		if ($editorId) {
    -			$searchSql .= ' AND ea.user_id = ?';
    +			$searchSql .= ' AND ea.editor_id = ?';
     			$params[] = $editorId;
     		}
    



2016-10-25