mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-12-22 22:31:53 +00:00
feat(problems/new_remote): provider name as initial tag
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
bc18403973
commit
e9abdd53ae
@ -107,6 +107,13 @@ $new_remote_problem_form->handle = function (&$vdata) {
|
||||
]);
|
||||
dataNewProblem($id);
|
||||
|
||||
DB::insert([
|
||||
"insert into problems_tags",
|
||||
"(problem_id, tag)",
|
||||
"values",
|
||||
DB::tuple([$id, $remote_provider['name']]),
|
||||
]);
|
||||
|
||||
redirectTo("/problem/{$id}");
|
||||
die();
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user