Skip to content

Commit 5eb4c69

Browse files
committed
Bug fix
1 parent 8e48d5f commit 5eb4c69

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ app.post('/:id/edit', async (req, res) => {
292292
update.status = req.body.status ? String(req.body.status) : commission.status;
293293
update.locked = (getUserRole(req.session) === 'admin') ? ((req.body.locked === true) || (req.body.locked === 'true') || (req.body.locked === 'on')) : commission.locked;
294294
update.sendEmail = (req.body.sendEmail === true) || (req.body.sendEmail === 'true') || (req.body.sendEmail === 'on');
295-
disableFieldEditing.forEach(fieldId => {
295+
vars.disableFieldEditing.forEach(fieldId => {
296296
if (fieldId in data) delete data[fieldId];
297297
});
298298
if (updateHandler && typeof updateHandler === 'function') {

0 commit comments

Comments
 (0)