fix(uoj/1/app/controllers): fix Judgement Failed submissions table not shown for superuser

When printing the table of Judgement Failed items at super-manage, there is nothing shown.
It caused by using echoSubmissionsList(), arguments that 3 passed but exactly 4 expected.
So add the missing argument, and let the result hidden because we select an exact result.
Also, because of the typo of "Judgement", there will be nothing shown if
only fixed too few arguments. This commit changes it too.
This commit is contained in:
Masco Skray 2018-10-11 20:34:18 +08:00
parent 923e1e61f8
commit 58e70164ba

View File

@ -295,7 +295,7 @@ EOD;
</div> </div>
<div> <div>
<h4>测评失败的提交记录</h4> <h4>测评失败的提交记录</h4>
<?php echoSubmissionsList("result_error = 'Judgment Failed'", 'order by id desc', $myUser); ?> <?php echoSubmissionsList("result_error = 'Judgement Failed'", 'order by id desc', array('result_hidden' => ''), $myUser); ?>
</div> </div>
<?php elseif ($cur_tab === 'custom-test'): ?> <?php elseif ($cur_tab === 'custom-test'): ?>
<?php $custom_test_deleter->printHTML() ?> <?php $custom_test_deleter->printHTML() ?>