Loading module/Application/src/Controller/PieceJointeController.php +4 −4 Changes for module/Application/src/Controller/PieceJointeController.php: 4 added lines, 4 removed lines. Original line number Diff line number Diff line Loading @@ -551,11 +551,11 @@ class PieceJointeController extends AbstractController $this->getServiceNote()->createNoteFromEmail($pj->getIntervenant(), $subject, $content); $this->flashMessenger()->addSuccessMessage('Email envoyé à l\'intervenant'); // foreach ($pj->getFichier() as $fichier) { // $this->getServicePieceJointe()->supprimerFichier($fichier, $pj); // } foreach ($pj->getFichier() as $fichier) { $this->getServicePieceJointe()->supprimerFichier($fichier, $pj); } // $this->updateTableauxBord($pj->getIntervenant()); $this->updateTableauxBord($pj->getIntervenant()); } catch (\Exception $e) { $this->flashMessenger()->addErrorMessage($this->translate($e)); } Loading module/Application/view/application/piece-jointe/validation.phtml +1 −1 Changes for module/Application/view/application/piece-jointe/validation.phtml: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -33,7 +33,7 @@ $params = [ href="<?= $this->url('piece-jointe/intervenant/refuser', $params, [], true) ?>" title="Refuser la pièce justificative '<?= $pj->getType() ?>'" data-event="pj-refus-event" > data-tpj="<?= $pj->getType()->getId() ?>"> <i class="fas fa-trash-can"></i> Refuser </a> <?php endif ?> Loading public/js/piece-jointe.js +6 −5 Changes for public/js/piece-jointe.js: 6 added lines, 5 removed lines. Original line number Diff line number Diff line Loading @@ -17,15 +17,16 @@ $.widget("ose.pieceJointe", { event.preventDefault(); }); that.element.on('body', "pj-refus-event", function (event, data) { location.reload(true); $("body").on("pj-refus-event", function (event, container) { var tpj = event.a.data('tpj'); that.onFileChange(tpj); that.refreshContainerValidationBar(); }); that.element.on('click', '.archiver-pj', function (event) { that.archiver($(this)); event.preventDefault(); }); $("body").on("upload-event-file-deleted upload-event-file-uploaded", function (event, container) Loading Loading @@ -111,7 +112,7 @@ $.widget("ose.pieceJointe", { console.log(jqXHR); }, complete: function (jqXHR) { // that.onFileChange(tpj); that.onFileChange(tpj); } }); }, Loading Loading
module/Application/src/Controller/PieceJointeController.php +4 −4 Changes for module/Application/src/Controller/PieceJointeController.php: 4 added lines, 4 removed lines. Original line number Diff line number Diff line Loading @@ -551,11 +551,11 @@ class PieceJointeController extends AbstractController $this->getServiceNote()->createNoteFromEmail($pj->getIntervenant(), $subject, $content); $this->flashMessenger()->addSuccessMessage('Email envoyé à l\'intervenant'); // foreach ($pj->getFichier() as $fichier) { // $this->getServicePieceJointe()->supprimerFichier($fichier, $pj); // } foreach ($pj->getFichier() as $fichier) { $this->getServicePieceJointe()->supprimerFichier($fichier, $pj); } // $this->updateTableauxBord($pj->getIntervenant()); $this->updateTableauxBord($pj->getIntervenant()); } catch (\Exception $e) { $this->flashMessenger()->addErrorMessage($this->translate($e)); } Loading
module/Application/view/application/piece-jointe/validation.phtml +1 −1 Changes for module/Application/view/application/piece-jointe/validation.phtml: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -33,7 +33,7 @@ $params = [ href="<?= $this->url('piece-jointe/intervenant/refuser', $params, [], true) ?>" title="Refuser la pièce justificative '<?= $pj->getType() ?>'" data-event="pj-refus-event" > data-tpj="<?= $pj->getType()->getId() ?>"> <i class="fas fa-trash-can"></i> Refuser </a> <?php endif ?> Loading
public/js/piece-jointe.js +6 −5 Changes for public/js/piece-jointe.js: 6 added lines, 5 removed lines. Original line number Diff line number Diff line Loading @@ -17,15 +17,16 @@ $.widget("ose.pieceJointe", { event.preventDefault(); }); that.element.on('body', "pj-refus-event", function (event, data) { location.reload(true); $("body").on("pj-refus-event", function (event, container) { var tpj = event.a.data('tpj'); that.onFileChange(tpj); that.refreshContainerValidationBar(); }); that.element.on('click', '.archiver-pj', function (event) { that.archiver($(this)); event.preventDefault(); }); $("body").on("upload-event-file-deleted upload-event-file-uploaded", function (event, container) Loading Loading @@ -111,7 +112,7 @@ $.widget("ose.pieceJointe", { console.log(jqXHR); }, complete: function (jqXHR) { // that.onFileChange(tpj); that.onFileChange(tpj); } }); }, Loading