Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEAT ITEM-295-le-shortname-du-rcr-ne-se-met-pas-a-jour-lors-dune-modi… #62

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ public interface IDemandeService {

Demande creerDemande(String rcr, Integer userNum);

void modifierShortNameDemande(Demande demande);

Demande archiverDemande(Demande demande) throws DemandeCheckingException;

void deleteById(Integer id);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -751,4 +751,9 @@ public Demande archiverDemande(Demande demande) throws DemandeCheckingException
ligneFichierService.deleteByDemande(demandeExemp);
return changeState(demandeExemp, Constant.ETATDEM_ARCHIVEE);
}

@Override
public void modifierShortNameDemande(Demande demande) {
setIlnShortNameOnDemande(demande);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -586,4 +586,9 @@ public Demande majTraitement(Integer demandeId, Integer traitementId) {
}
return null;
}

@Override
public void modifierShortNameDemande(Demande demande) {
setIlnShortNameOnDemande(demande);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -356,4 +356,9 @@ public List<DemandeRecouv> getDemandesToDelete() {
return listeDemandes;
return null;
}

@Override
public void modifierShortNameDemande(Demande demande) {
setIlnShortNameOnDemande(demande);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@ public Demande creerDemande(String rcr, Integer userNum) {
return save(demandeSupp);
}

@Override
public void modifierShortNameDemande(Demande demande) {
setIlnShortNameOnDemande(demande);
}

@Override
public Demande archiverDemande(Demande demande) throws DemandeCheckingException {
DemandeSupp demandeSupp = (DemandeSupp) demande;
Expand Down
1 change: 1 addition & 0 deletions web/src/main/java/fr/abes/item/web/DemandeRestService.java
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ public DemandeWebDto modifDemande(@PathVariable("type") TYPE_DEMANDE type, @Path
if (demande != null) {
if (rcr.isPresent()) {
demande.setRcr(rcr.get());
service.modifierShortNameDemande(demande);
return builder.buildDemandeDto(service.save(demande), type);
}
if (type.equals(TYPE_DEMANDE.EXEMP) && typeExemp.isPresent()) {
Expand Down
Loading