Commit 370fccbd authored by Stephane Bouvry's avatar Stephane Bouvry
Browse files

backup

parent 811a2d94
Loading
Loading
Loading
Loading
Loading
+16 −0
Changes for src/Entity/Db/SignatureFlow.php: 16 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -44,6 +44,11 @@ class SignatureFlow implements IObjectFormattable
     */
    protected $steps;

    /**
     * @ORM\Column(type="boolean", options={"default":"0"})
     */
    private bool $enabled = false;

    /**
     * @param ArrayCollection $steps
     */
@@ -61,6 +66,17 @@ class SignatureFlow implements IObjectFormattable
        return $this->id;
    }

    public function isEnabled(): bool
    {
        return $this->enabled;
    }

    public function setEnabled(bool $enabled): self
    {
        $this->enabled = $enabled;
        return $this;
    }

    /**
     * @return string|null
     */
+1 −0
Changes for src/Service/ProcessService.php: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -106,6 +106,7 @@ class ProcessService
            $this->getLoggerService()->debug("Suppression du fichier '$document'");
            unlink($document);
        } catch (\Exception $e) {
            $this->getLoggerService()->debug(get_class($e));
            $this->getLoggerService()->errorLogAndThrow($e, "Impossible de supprimer le processus");
        }
    }
+3 −0
Changes for src/Service/SignatureService.php: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -704,6 +704,9 @@ class SignatureService
                foreach ($signature->getRecipients() as $recipient) {
                    $this->getObjectManager()->remove($recipient);
                }
                foreach ($signature->getObservers() as $observer) {
                    $this->getObjectManager()->remove($observer);
                }
                $this->getObjectManager()->remove($signature);
                if ($flush) {
                    $this->getObjectManager()->flush();