@@ -543,16 +543,16 @@ function getWhereClause($col, $oper, $val)
543
543
break ;
544
544
case 'get_work_teacher ' :
545
545
require_once api_get_path (SYS_CODE_PATH ).'work/work.lib.php ' ;
546
- $ count = getWorkListTeacher (0 , $ limit , $ sidx , $ sord , $ whereCondition , true );
546
+ $ count = getWorkListTeacher (0 , $ limit , null , null , $ whereCondition , true );
547
547
break ;
548
548
case 'get_work_student ' :
549
549
require_once api_get_path (SYS_CODE_PATH ).'work/work.lib.php ' ;
550
- $ count = getWorkListStudent (0 , $ limit , $ sidx , $ sord , $ whereCondition , true );
550
+ $ count = getWorkListStudent (0 , $ limit , null , null , $ whereCondition , true );
551
551
break ;
552
552
case 'get_all_work_student ' :
553
553
require_once api_get_path (SYS_CODE_PATH ).'work/work.lib.php ' ;
554
554
$ withResults = isset ($ _REQUEST ['with_results ' ]) ? (int ) $ _REQUEST ['with_results ' ] : 0 ;
555
- $ count = getAllWorkListStudent (0 , $ limit , $ sidx , $ sord , $ whereCondition , true , $ withResults );
555
+ $ count = getAllWorkListStudent (0 , $ limit , null , null , $ whereCondition , true , $ withResults );
556
556
break ;
557
557
case 'get_work_user_list_all ' :
558
558
require_once api_get_path (SYS_CODE_PATH ).'work/work.lib.php ' ;
@@ -594,8 +594,8 @@ function getWhereClause($col, $oper, $val)
594
594
$ count = get_work_user_list (
595
595
0 ,
596
596
$ limit ,
597
- $ sidx ,
598
- $ sord ,
597
+ null ,
598
+ null ,
599
599
$ work_id ,
600
600
$ whereCondition ,
601
601
null ,
@@ -605,8 +605,8 @@ function getWhereClause($col, $oper, $val)
605
605
$ count = get_work_user_list_from_documents (
606
606
0 ,
607
607
$ limit ,
608
- $ sidx ,
609
- $ sord ,
608
+ null ,
609
+ null ,
610
610
$ work_id ,
611
611
api_get_user_id (),
612
612
$ whereCondition ,
@@ -1361,6 +1361,7 @@ function getWhereClause($col, $oper, $val)
1361
1361
'actions ' ,
1362
1362
];
1363
1363
$ sidx = in_array ($ sidx , $ columns ) ? $ sidx : 'title ' ;
1364
+
1364
1365
$ result = getWorkListTeacher (
1365
1366
$ start ,
1366
1367
$ limit ,
0 commit comments