Commit 487f039 1 parent f051c83 commit 487f039 Copy full SHA for 487f039
File tree 1 file changed +16
-1
lines changed
1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change 21
21
use APP \core \Application ;
22
22
use APP \core \Request ;
23
23
use APP \file \PublicFileManager ;
24
+ use PKP \config \Config ;
24
25
use PKP \context \Context ;
25
26
use PKP \core \PKPSessionGuard ;
26
27
use PKP \facades \Locale ;
@@ -138,7 +139,21 @@ public function setupBackendPage()
138
139
'icon ' => 'Catalog '
139
140
];
140
141
141
- $ index = array_search ('submissions ' , array_keys ($ menu ));
142
+ $ index = false ;
143
+ if (Config::getVar ('features ' , 'enable_new_submission_listing ' )) {
144
+ $ reviewAssignmentsIndex = array_search ('reviewAssignments ' , array_keys ($ menu ));
145
+ $ mySubmissionsIndex = array_search ('mySubmissions ' , array_keys ($ menu ));
146
+ if ($ mySubmissionsIndex ) {
147
+ $ index = $ mySubmissionsIndex ;
148
+ } elseif ($ reviewAssignmentsIndex ) {
149
+ $ index = $ reviewAssignmentsIndex ;
150
+ } else {
151
+ $ index = array_search ('dashboards ' , array_keys ($ menu ));
152
+ }
153
+ } else {
154
+ $ index = array_search ('submissions ' , array_keys ($ menu ));
155
+ }
156
+
142
157
if ($ index === false || count ($ menu ) <= $ index + 1 ) {
143
158
$ menu ['catalog ' ] = $ catalogLink ;
144
159
} else {
You can’t perform that action at this time.
0 commit comments