mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 22:53:49 +00:00
prevent loop when posting calendarrange to remote and updating remoteId
This commit is contained in:
@@ -25,6 +25,14 @@ trait RemoteCalendarTrait
|
||||
*/
|
||||
private string $remoteId = '';
|
||||
|
||||
/**
|
||||
* If true, the changes won't be enqueued to remote
|
||||
*
|
||||
* This is required to prevent update loop: a persist trigger an event creation on remote,
|
||||
* which in turn change remoteId and, in turn, trigger an update change, ...
|
||||
*/
|
||||
public bool $preventEnqueueChanges = false;
|
||||
|
||||
public function addRemoteAttributes(array $remoteAttributes): self
|
||||
{
|
||||
$this->remoteAttributes = array_merge($this->remoteAttributes, $remoteAttributes);
|
||||
|
Reference in New Issue
Block a user