zet-lib 1.4.9 → 1.4.11
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/zGeneratorRouter.js +2 -2
- package/lib/zRoute.js +1 -1
- package/package.json +1 -1
package/lib/Form.js
CHANGED
|
@@ -602,7 +602,7 @@ Form.field = (obj) => {
|
|
|
602
602
|
displayForm += `</div></div>`;
|
|
603
603
|
break;
|
|
604
604
|
default:
|
|
605
|
-
value = value ? value.
|
|
605
|
+
value = value ? value.replace(/"/g, """) : obj.value;
|
|
606
606
|
displayForm = `${prepend}${inputGroupLeft}<input ${disabled} autocomplete="nope" autofocus="" ${readonly} ${tabindex} type="${type}" class="form-control ${obj.class}" ${id} ${name} ${placeholder} ${required} value="${value}" data-t="${value}" ${htmlOptions}>${inputGroupRight}${information}${append}`;
|
|
607
607
|
break;
|
|
608
608
|
}
|
package/lib/zGeneratorRouter.js
CHANGED
|
@@ -504,12 +504,12 @@ const generate = async (req, res) => {
|
|
|
504
504
|
//check if has chains here
|
|
505
505
|
MYMODEL = filesKey.modelObj;
|
|
506
506
|
//delete/clean zgrid after changes
|
|
507
|
-
|
|
507
|
+
await connection.delete({
|
|
508
508
|
table: 'zgrid',
|
|
509
509
|
where: {
|
|
510
510
|
route_name: table,
|
|
511
511
|
},
|
|
512
|
-
})
|
|
512
|
+
})
|
|
513
513
|
await connection.delete({
|
|
514
514
|
table: "zgrid_default",
|
|
515
515
|
where: {
|
package/lib/zRoute.js
CHANGED
|
@@ -3031,7 +3031,7 @@ zRoute.forms = (
|
|
|
3031
3031
|
if (widgets[key].hidden) {
|
|
3032
3032
|
obj.type = "hidden";
|
|
3033
3033
|
} else {
|
|
3034
|
-
obj.value = obj.value.
|
|
3034
|
+
obj.value = obj.value ? obj.value.replace(/"/g, """) : "";
|
|
3035
3035
|
obj.type = "input";
|
|
3036
3036
|
}
|
|
3037
3037
|
break;
|