forked from potsda.mn/mobilizon
Fix duplicating group event not using the current actor as event
organizer Closes #910 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
346cd6cfac
commit
819f2af518
|
@ -669,7 +669,11 @@ const DEFAULT_LIMIT_NUMBER_OF_PLACES = 10;
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
update(data) {
|
update(data) {
|
||||||
return new EventModel(data.event);
|
let event = data.event;
|
||||||
|
if (this.isDuplicate) {
|
||||||
|
event = { ...event, organizerActor: this.currentActor };
|
||||||
|
}
|
||||||
|
return new EventModel(event);
|
||||||
},
|
},
|
||||||
skip() {
|
skip() {
|
||||||
return !this.eventId;
|
return !this.eventId;
|
||||||
|
|
Loading…
Reference in a new issue