From 02ee4a384626e518fff809e36583e8d125948a5a Mon Sep 17 00:00:00 2001 From: CarliPinell Date: Tue, 22 Oct 2024 18:33:14 -0400 Subject: [PATCH 1/9] Fixing mustache syntax in Form Collection Record Control --- src/components/renderer/form-collection-record-control.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/renderer/form-collection-record-control.vue b/src/components/renderer/form-collection-record-control.vue index a13b7d4d3..106217843 100644 --- a/src/components/renderer/form-collection-record-control.vue +++ b/src/components/renderer/form-collection-record-control.vue @@ -156,6 +156,7 @@ export default { }, callbackRecord() { this.hasMustache = true; + //console.log("en callbackRecord this.selCollectionId: ", this.selCollectionId); this.loadRecordCollection(this.selCollectionId, 1, this.selDisplayMode); }, errors() { @@ -212,9 +213,9 @@ export default { }, record(record) { this.hasMustache = false; - if (record && !isNaN(record) && record > 0 && this.collection) { + if (record && !isNaN(record) && record > 0 && this.collection.collectionId) { this.selRecordId = record; - this.loadRecordCollection(this.selCollectionId, record, this.collectionmode); + this.loadRecordCollection(this.collection.collectionId, record, this.collectionmode); } else { if (this.isMustache(record)) { this.callbackRecord(); @@ -226,6 +227,7 @@ export default { if(collectionmode) { this.selDisplayMode = collectionmode.modeId; } + //console.log("en collectionmode: ", this.selCollectionId); this.loadRecordCollection(this.selCollectionId, this.selRecordId, this.selDisplayMode); }, }, @@ -235,6 +237,7 @@ export default { }); if (this.collection && this.record) { + //console.log("en mounted this.collection.collectionId: ", this.collection.collectionId); this.loadRecordCollection(this.collection.collectionId, this.record, this.collectionmode.modeId); } }, From 11c48b93c33a57ae8c6d75438b9900864fe440e8 Mon Sep 17 00:00:00 2001 From: CarliPinell Date: Wed, 23 Oct 2024 09:07:09 -0400 Subject: [PATCH 2/9] fixing nustache bug in form collection view --- src/components/renderer/form-collection-view-control.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/renderer/form-collection-view-control.vue b/src/components/renderer/form-collection-view-control.vue index f1f84cfd6..98a3bce9c 100644 --- a/src/components/renderer/form-collection-view-control.vue +++ b/src/components/renderer/form-collection-view-control.vue @@ -206,9 +206,9 @@ export default { }, record(record) { this.hasMustache = false; - if (record && !isNaN(record) && record > 0 && this.collection) { + if (record && !isNaN(record) && record > 0 && this.collection.collectionId) { this.selRecordId = record; - this.loadRecordCollection(this.selCollectionId, record, this.collectionmode); + this.loadRecordCollection(this.collection.collectionId, record, this.collectionmode); } else { if (this.isMustache(record)) { this.callbackRecord(); From a492f4196f3ecf5a540c992a5e06bd3550190a0c Mon Sep 17 00:00:00 2001 From: CarliPinell Date: Wed, 23 Oct 2024 13:50:34 -0400 Subject: [PATCH 3/9] removing consoles --- .../renderer/form-collection-record-control.vue | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/components/renderer/form-collection-record-control.vue b/src/components/renderer/form-collection-record-control.vue index 106217843..765f5bde4 100644 --- a/src/components/renderer/form-collection-record-control.vue +++ b/src/components/renderer/form-collection-record-control.vue @@ -16,7 +16,7 @@