Webpage Editor functionality

This commit is contained in:
paoloar77
2022-11-10 19:33:23 +01:00
parent 32dcc1702d
commit c7ca4e2878
15 changed files with 227 additions and 5 deletions

View File

@@ -332,7 +332,7 @@ router.post('/settable', authenticate, async (req, res) => {
} else if (params.table === 'hours') {
} else {
if ((mydata['_id'] === undefined || (mytablerec.isNew && mydata['_id'] === 0)) && (mytablerec._id === undefined)) {
if ((mydata['_id'] === undefined || mydata['_id'] === '' || (mytablerec.isNew && mydata['_id'] === 0)) && (mytablerec._id === undefined)) {
mytablerec._id = new ObjectID();
}
}