zet-lib 1.2.106 → 1.2.108
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/Form.js +1 -1
- package/lib/zRoute.js +2 -2
- package/package.json +1 -1
package/lib/Form.js
CHANGED
|
@@ -378,7 +378,7 @@ Form.field = (obj) => {
|
|
|
378
378
|
}
|
|
379
379
|
let btnAdd = ''
|
|
380
380
|
if (!obj.isAddButton && !obj.viewOnly) {
|
|
381
|
-
btnAdd = `<th><img id="add${obj.id}" src="/assets/icons/plus.svg" class="icons-bg-
|
|
381
|
+
btnAdd = `<th><img id="add${obj.id}" src="/assets/icons/plus.svg" class="icons-bg-white boxy-small btn-plus" ></th>`
|
|
382
382
|
}
|
|
383
383
|
obj.btnAdd = btnAdd
|
|
384
384
|
obj.html = html
|
package/lib/zRoute.js
CHANGED
|
@@ -291,11 +291,11 @@ zRoute.post = (req, res, MYMODEL, routeName, body) => {
|
|
|
291
291
|
const onlyNumbers = val.replace(/\D/g, '')
|
|
292
292
|
val = parseInt(onlyNumbers)
|
|
293
293
|
}
|
|
294
|
-
post[routeName][key] = val ? val : null
|
|
294
|
+
post[routeName][key] = val ? val : val === 0 ? 0 : null
|
|
295
295
|
break
|
|
296
296
|
|
|
297
297
|
case 'numeric':
|
|
298
|
-
post[routeName][key] = val ? val : null
|
|
298
|
+
post[routeName][key] = val ? val : val === 0 ? 0 : null
|
|
299
299
|
break
|
|
300
300
|
|
|
301
301
|
case 'json_array':
|