mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 07:03:49 +00:00
Feature: [calendar] Add button to generate document immediatly after saving the calendar
This commit is contained in:
@@ -611,7 +611,7 @@ class Calendar implements TrackCreationInterface, TrackUpdateInterface
|
||||
|
||||
public function setEndDate(DateTimeImmutable $endDate): self
|
||||
{
|
||||
if ($this->endDate->getTimestamp() !== $endDate->getTimestamp()) {
|
||||
if (null === $this->endDate || $this->endDate->getTimestamp() !== $endDate->getTimestamp()) {
|
||||
$this->increaseaDatetimeVersion();
|
||||
}
|
||||
|
||||
@@ -662,7 +662,7 @@ class Calendar implements TrackCreationInterface, TrackUpdateInterface
|
||||
|
||||
public function setStartDate(DateTimeImmutable $startDate): self
|
||||
{
|
||||
if ($this->startDate->getTimestamp() !== $startDate->getTimestamp()) {
|
||||
if (null === $this->startDate || $this->startDate->getTimestamp() !== $startDate->getTimestamp()) {
|
||||
$this->increaseaDatetimeVersion();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user