Some bugfixes to the previous commit.

This commit is contained in:
Tomas Bures 2017-04-20 19:57:55 -04:00
parent 8237dd5d77
commit bb4eb3832f

View file

@ -130,13 +130,13 @@ router.post('/create', passport.parseForm, passport.csrfProtection, (req, res) =
return res.redirect('/reports/create?' + tools.queryParams(data));
}
reportProcessor.start(id);
reportProcessor.start(id, () => {
req.flash('success', util.format(_('Report “%s” created'), data.name));
res.redirect('/reports');
});
});
});
});
router.get('/edit/:id', passport.csrfProtection, (req, res) => {
const reqData = req.query;