mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
core: remove unexpected access to tdoc
This commit is contained in:
1 parent
d0116ac43a
commit
b4bb02bd57
2 files changed
+3
-3
No files matched your search
@@ -283,8 +283,8 @@ class HomeworkEditHandler extends Handler {
|
||||
datePenaltyText: penaltySince.format('YYYY-M-D'),
|
||||
timePenaltyText: penaltySince.format('hh:mm'),
|
||||
extensionDays,
|
||||
penaltyRules: yaml.dump(tdoc.penaltyRules),
|
||||
pids: tdoc.pids.join(','),
|
||||
penaltyRules: tid ? yaml.dump(tdoc.penaltyRules) : null,
|
||||
pids: tid ? tdoc.pids.join(',') : '',
|
||||
path,
|
||||
page_name: tid ? 'homework_edit' : 'homework_create',
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user