Missing title

master
Mark Moffat 2018-12-12 00:35:35 +11:00
parent b4a9ba3064
commit ac01568036
1 changed files with 2 additions and 2 deletions

View File

@ -79,7 +79,7 @@ router.post('/admin/product/insert', common.restrict, common.checkAccess, (req,
let doc = { let doc = {
productPermalink: req.body.frmProductPermalink, productPermalink: req.body.frmProductPermalink,
productTitle: req.body.frmProductTitle, productTitle: common.cleanHtml(req.body.frmProductTitle),
productPrice: req.body.frmProductPrice, productPrice: req.body.frmProductPrice,
productDescription: common.cleanHtml(req.body.frmProductDescription), productDescription: common.cleanHtml(req.body.frmProductDescription),
productPublished: req.body.frmProductPublished, productPublished: req.body.frmProductPublished,
@ -218,7 +218,7 @@ router.post('/admin/product/update', common.restrict, common.checkAccess, (req,
}else{ }else{
common.getImages(req.body.frmProductId, req, res, (images) => { common.getImages(req.body.frmProductId, req, res, (images) => {
let productDoc = { let productDoc = {
productTitle: req.body.frmProductTitle, productTitle: common.cleanHtml(req.body.frmProductTitle),
productDescription: common.cleanHtml(req.body.frmProductDescription), productDescription: common.cleanHtml(req.body.frmProductDescription),
productPublished: req.body.frmProductPublished, productPublished: req.body.frmProductPublished,
productPrice: req.body.frmProductPrice, productPrice: req.body.frmProductPrice,