Missing title
parent
b4a9ba3064
commit
ac01568036
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue