From 99efc98d2db1ad441bb13ea243bc8fa9dc0f8932 Mon Sep 17 00:00:00 2001 From: undefined Date: Wed, 6 Jan 2021 22:29:41 +0800 Subject: [PATCH] =?UTF-8?q?core:=20=E4=BF=AE=E5=A4=8Dpid=E6=9C=AA=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E6=97=B6=E6=97=A0=E6=B3=95=E6=AD=A3=E5=B8=B8=E7=B4=A2?= =?UTF-8?q?=E5=BC=95psdoc=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/hydrooj/package.json | 2 +- packages/hydrooj/src/handler/problem.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/hydrooj/package.json b/packages/hydrooj/package.json index 7ed5ca7e2..394ab5043 100644 --- a/packages/hydrooj/package.json +++ b/packages/hydrooj/package.json @@ -1,6 +1,6 @@ { "name": "hydrooj", - "version": "2.15.10", + "version": "2.15.11", "bin": "bin/hydrooj.js", "main": "dist/loader.js", "typings": "dist/loader.d.ts", diff --git a/packages/hydrooj/src/handler/problem.ts b/packages/hydrooj/src/handler/problem.ts index e7be5069a..4e2849bd3 100644 --- a/packages/hydrooj/src/handler/problem.ts +++ b/packages/hydrooj/src/handler/problem.ts @@ -327,7 +327,7 @@ export class ProblemStatisticsHandler extends ProblemDetailHandler { const udoc = await user.getById(domainId, this.pdoc.owner); const path = [ ['problem_main', 'problem_main'], - [this.pdoc.title, 'problem_detail', { pid: this.pdoc.pid }, true], + [this.pdoc.title, 'problem_detail', { pid: this.pdoc.pid || this.pdoc.docId }, true], ['problem_statistics', null], ]; this.response.template = 'problem_statistics.html'; @@ -530,7 +530,7 @@ export class ProblemSolutionHandler extends ProblemDetailHandler { const pssdict = solution.getListStatus(domainId, docids, this.user._id); const path = [ ['problem_main', 'problem_main'], - [this.pdoc.title, 'problem_detail', { pid: this.pdoc.pid }, true], + [this.pdoc.title, 'problem_detail', { pid: this.pdoc.pid || this.pdoc.docId }, true], ['problem_solution', null], ]; this.response.body = {