Skip to content

Commit b530a8d

Browse files
committed
core: fix problem_create langs
1 parent e6c22d6 commit b530a8d

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ Hydro 用户群:1085853538
115115

116116
- ui: 比赛页面添加打印快捷入口
117117
- ui: 比赛题目列表显示时空限制和提交按钮
118-
- core: 检查提解投票权限
118+
- core: 检查题解投票权限
119119
- ui: 修复题目配置页文件操作
120120
- ui: 移除旧的 window.Hydro.util 和 window.Hydro.component 对象
121121
- onsite-toolkit: 添加导入工具

packages/hydrooj/src/handler/problem.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -991,6 +991,7 @@ export class ProblemStatisticsHandler extends ProblemDetailHandler {
991991

992992
export class ProblemCreateHandler extends Handler {
993993
async get() {
994+
this.response.body.statementLangs = this.ctx.i18n.langs(false);
994995
this.response.template = 'problem_edit.html';
995996
this.response.body = {
996997
page_name: 'problem_create',

0 commit comments

Comments
 (0)