remove productOptions from routes/order.js
parent
65b18cfe42
commit
77d7262124
|
@ -61,14 +61,10 @@ router.get('/admin/order/view/:id', common.restrict, (req, res) => {
|
||||||
if(err){
|
if(err){
|
||||||
console.info(err.stack);
|
console.info(err.stack);
|
||||||
}
|
}
|
||||||
let productOptions = '';
|
|
||||||
if(result.options !== {}){
|
|
||||||
productOptions = result.options;
|
|
||||||
}
|
|
||||||
res.render('order', {
|
res.render('order', {
|
||||||
title: 'View order',
|
title: 'View order',
|
||||||
result: result,
|
result: result,
|
||||||
productOptions: productOptions,
|
|
||||||
config: req.app.config,
|
config: req.app.config,
|
||||||
session: req.session,
|
session: req.session,
|
||||||
message: common.clearSessionValue(req.session, 'message'),
|
message: common.clearSessionValue(req.session, 'message'),
|
||||||
|
|
Loading…
Reference in New Issue