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) {
|
||||
return new EventModel(data.event);
|
||||
let event = data.event;
|
||||
if (this.isDuplicate) {
|
||||
event = { ...event, organizerActor: this.currentActor };
|
||||
}
|
||||
return new EventModel(event);
|
||||
},
|
||||
skip() {
|
||||
return !this.eventId;
|
||||
|
Loading…
Reference in New Issue
Block a user