Skip to content
Snippets Groups Projects
Commit 03ddcdfb authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Bug corrigé sur la modif de types de modifs de serice dûs

parent 53f5b01a
No related branches found
No related tags found
No related merge requests found
...@@ -3,6 +3,13 @@ title: "Changements intervenus sur OSE" ...@@ -3,6 +3,13 @@ title: "Changements intervenus sur OSE"
author: Laurent Lécluse - DSI - Unicaen author: Laurent Lécluse - DSI - Unicaen
--- ---
# OSE 11
## Correction de bugs
* L'interface d'administration des motifs de modification de service est de nouveau pleinement fonctionelle.
# OSE 10-zf2 et 10-zf3 # OSE 10-zf2 et 10-zf3
## Nouveautés ## Nouveautés
......
...@@ -22,7 +22,7 @@ return [ ...@@ -22,7 +22,7 @@ return [
'delete' => [ 'delete' => [
'type' => 'Segment', 'type' => 'Segment',
'options' => [ 'options' => [
'route' => '/delete/:motif-modification-service', 'route' => '/delete/:motifModificationServiceDu',
'constraints' => [ 'constraints' => [
'motif-modification-service' => '[0-9]*', 'motif-modification-service' => '[0-9]*',
], ],
...@@ -34,7 +34,7 @@ return [ ...@@ -34,7 +34,7 @@ return [
'saisie' => [ 'saisie' => [
'type' => 'Segment', 'type' => 'Segment',
'options' => [ 'options' => [
'route' => '/saisie/[:motif-modification-service]', 'route' => '/saisie/[:motifModificationServiceDu]',
'constraints' => [ 'constraints' => [
'motif-modification-service' => '[0-9]*', 'motif-modification-service' => '[0-9]*',
], ],
......
...@@ -31,7 +31,7 @@ class MotifModificationServiceController extends AbstractController ...@@ -31,7 +31,7 @@ class MotifModificationServiceController extends AbstractController
{ {
/* @var $motifModificationService MotifModificationServiceDu */ /* @var $motifModificationService MotifModificationServiceDu */
$motifModificationServiceDu = $this->getEvent()->getParam('motif-modification-service'); $motifModificationServiceDu = $this->getEvent()->getParam('motifModificationServiceDu');
$form = $this->getFormMotifModificationServiceSaisie(); $form = $this->getFormMotifModificationServiceSaisie();
if (empty($motifModificationServiceDu)) { if (empty($motifModificationServiceDu)) {
...@@ -57,7 +57,7 @@ class MotifModificationServiceController extends AbstractController ...@@ -57,7 +57,7 @@ class MotifModificationServiceController extends AbstractController
public function deleteAction() public function deleteAction()
{ {
$motifModificationServiceDu = $this->getEvent()->getParam('motif-modification-service'); $motifModificationServiceDu = $this->getEvent()->getParam('motifModificationServiceDu');
try { try {
$this->getServiceMotifModificationService()->delete($motifModificationServiceDu); $this->getServiceMotifModificationService()->delete($motifModificationServiceDu);
...@@ -66,6 +66,6 @@ class MotifModificationServiceController extends AbstractController ...@@ -66,6 +66,6 @@ class MotifModificationServiceController extends AbstractController
$this->flashMessenger()->addErrorMessage(DbException::translate($e)->getMessage()); $this->flashMessenger()->addErrorMessage(DbException::translate($e)->getMessage());
} }
return new MessengerViewModel(compact('motifModificationService')); return new MessengerViewModel();
} }
} }
...@@ -24,7 +24,10 @@ $canEdit = $this->isAllowed(Privileges::getResourceId(Privileges::MOTIFS_MODIFIC ...@@ -24,7 +24,10 @@ $canEdit = $this->isAllowed(Privileges::getResourceId(Privileges::MOTIFS_MODIFIC
<th style="word-wrap: break-word ; ">Code</th> <th style="word-wrap: break-word ; ">Code</th>
<th style="word-wrap: break-word ; ">Libelle</th> <th style="word-wrap: break-word ; ">Libelle</th>
<th style="word-wrap: break-word ; ">Multiplicateur</th> <th style="word-wrap: break-word ; ">Multiplicateur</th>
<th style="word-wrap: break-word ; " title="Le dépassement du service dû ne donnera pas lieu à des heures complémentaires (comme par exemple pour une décharge)">Pas d'heures complémentaires</th> <th style="word-wrap: break-word ; "
title="Le dépassement du service dû ne donnera pas lieu à des heures complémentaires (comme par exemple pour une décharge)">
Pas d'heures complémentaires
</th>
<?php if ($canEdit) echo '<th>Actions</th>' ?> <?php if ($canEdit) echo '<th>Actions</th>' ?>
</thead> </thead>
<tbody> <tbody>
...@@ -37,11 +40,11 @@ $canEdit = $this->isAllowed(Privileges::getResourceId(Privileges::MOTIFS_MODIFIC ...@@ -37,11 +40,11 @@ $canEdit = $this->isAllowed(Privileges::getResourceId(Privileges::MOTIFS_MODIFIC
<?php if ($canEdit) { ?> <?php if ($canEdit) { ?>
<td style="text-align:center;width:1px;white-space: nowrap"> <td style="text-align:center;width:1px;white-space: nowrap">
<a class="ajax-modal" data-event="motif-modification-service-saisie" <a class="ajax-modal" data-event="motif-modification-service-saisie"
href="<?= $this->url('motif-modification-service/saisie', ['motif-modification-service' => $fr->getId()]) ?>" href="<?= $this->url('motif-modification-service/saisie', ['motifModificationServiceDu' => $fr->getId()]) ?>"
title="Modifier le Motif de Modificationde Service dû"> title="Modifier le Motif de Modificationde Service dû">
<span class="glyphicon glyphicon-edit"></span></a> <span class="glyphicon glyphicon-edit"></span></a>
<a class="pop-ajax" <a class="pop-ajax"
href="<?= $this->url('motif-modification-service/delete', ['motif-modification-service' => $fr->getId()]) ?>" href="<?= $this->url('motif-modification-service/delete', ['motifModificationServiceDu' => $fr->getId()]) ?>"
title="Supprimer le Motif de Modificationde Service dû" title="Supprimer le Motif de Modificationde Service dû"
data-content="<p class='lead text-danger'><strong>Attention!</strong> Confirmez-vous cette suppression ?</p>" data-content="<p class='lead text-danger'><strong>Attention!</strong> Confirmez-vous cette suppression ?</p>"
data-confirm="true" data-confirm="true"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment