From b8e3c9a3764ba5dd3c0c1a7e1405515572c3ee4f Mon Sep 17 00:00:00 2001 From: Hannes Heine Date: Thu, 25 Nov 2021 10:18:41 +0100 Subject: [PATCH] change formular store moderation information, change SubmitObject --- admin/src/components/CreationFormular.vue | 24 +++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/admin/src/components/CreationFormular.vue b/admin/src/components/CreationFormular.vue index a3dc9b58f..babff9609 100644 --- a/admin/src/components/CreationFormular.vue +++ b/admin/src/components/CreationFormular.vue @@ -233,10 +233,12 @@ export default { this.submitObj = [ { item: this.itemsMassCreation, - datum: this.radioSelected, + email: this.item.email, + creationDate: this.radioSelected.long, amount: this.value, - text: this.text, - moderator: this.$store.state.moderator, + note: this.text, + moderator: this.$store.state.moderator.id, + }, ] alert('MehrfachSCHÖPFUNG ABSENDEN FÜR >> ' + i + ' Mitglieder') @@ -252,15 +254,13 @@ export default { // hinweis das eine einzelne schöpfung ausgeführt wird an (Vorname) alert('SUBMIT CREATION => ' + this.type + ' >> für ' + this.item.firstName + '') // erstellen eines Arrays (submitObj) mit allen Daten - this.submitObj = [ - { - item: this.item, - datum: this.radioSelected.long, - amount: this.value, - text: this.text, - moderator: this.$store.state.moderator, - }, - ] + this.submitObj = { + email: this.item.email, + creationDate: this.radioSelected.long, + amount: this.value, + note: this.text, + moderator: this.$store.state.moderator.id, + } if (this.pagetype === 'PageCreationConfirm') { // hinweis das eine ein einzelne Schöpfung abgesendet wird an (email)