Skip to content

Commit 9fe0ccb

Browse files
committed
2 parents c25b422 + 6482b74 commit 9fe0ccb

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/routes/admin/titles.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ export const setupAdminTitleRoutes = function(app: Express, prisma: PrismaClient
167167
try {
168168
if (NODE_ENV === 'production' && title.intra_title_id) {
169169
const api = await getAPIClient();
170-
const patch = await api.patch(`/v2/titles/${title.intra_title_id}`, {
170+
const patch = await api.patch(`/titles/${title.intra_title_id}`, {
171171
name: req.body.title,
172172
});
173173
if (!patch.ok) {

templates/admin/title_edit.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<form action="/admin/titles/{{ title.id }}/edit" method="post">
1414
<div class="mb-2">
1515
<label for="title" class="form-label">Title</label>
16-
<input type="text" id="title" name="title" class="form-control" placeholder="Title" value="{{ title.title | striptags(true) | escape }}" required readonly>
16+
<input type="text" id="title" name="title" class="form-control" placeholder="Title" value="{{ title.title | striptags(true) | escape }}" required>
1717
<small class="form-text text-muted">Include <code>%login</code> in the title, as this piece of text gets replaced with the student's login.</small>
1818
</div>
1919

0 commit comments

Comments
 (0)