From f0cd378d14aa977f0e730125b11aa346a92191a5 Mon Sep 17 00:00:00 2001 From: Thomas Lynch Date: Tue, 9 Feb 2021 09:00:46 +0000 Subject: [PATCH] close #321 --- controllers/forms/create.js | 4 ---- views/pages/create.pug | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/controllers/forms/create.js b/controllers/forms/create.js index 93d19510..228a3c44 100644 --- a/controllers/forms/create.js +++ b/controllers/forms/create.js @@ -26,10 +26,6 @@ module.exports = async (req, res, next) => { if (!req.body.name || req.body.name.length <= 0) { errors.push('Missing name'); } - if (!req.body.description || req.body.description.length <= 0) { - errors.push('Missing description'); - } - //other validation if (req.body.uri) { if (req.body.uri.length > globalLimits.fieldLength.uri) { diff --git a/views/pages/create.pug b/views/pages/create.pug index 1b38f095..cf8926eb 100644 --- a/views/pages/create.pug +++ b/views/pages/create.pug @@ -15,7 +15,7 @@ block content input(type='text', name='name', maxlength=globalLimits.fieldLength.boardname required) .row .label Description - input(type='text', name='description', maxlength=globalLimits.fieldLength.description required) + input(type='text', name='description', maxlength=globalLimits.fieldLength.description) .row .label Tags textarea(name='tags' placeholder='Newline separated, max 10')