Subversion Repositories eFlore/Applications.coel

Compare Revisions

Ignore whitespace Rev 1309 → Rev 1310

/branches/v1.0-syrah/src/org/tela_botanica/client/vues/structure/StructureForm.java
725,9 → 725,6
}
}
System.out.println(structureARetourner);
return structureARetourner;
}
1137,8 → 1134,11
String specialite = personne.get("specialite");
personne.setSpecialite(specialite);
// On met à faux le décès
personne.setDeces(Personne.ETRE_VIVANT);
// Ajout de la personne dans la liste correspondant à son état (ajouté ou modifié)
if (personne.get("etat") != null && personne.get("etat").equals(StructureAPersonne.ETAT_AJOUTE)) {// Une personne ajoutée
if (personne.get("etat") != null && personne.get("etat").equals(StructureAPersonne.ETAT_AJOUTE)) { // Une personne ajoutée
personnelAjoute.put(""+i, personne);
} else {// Une personne modifiée
personnelModifie.put(personne.getId(), personne);
1516,7 → 1516,7
StructureAPersonne structureAPersonne = ce.getModel();
String etat = structureAPersonne.get("etat");
if (!etat.equals(aDonnee.ETAT_AJOUTE) && !UtilString.isEmpty(structureAPersonne.getId())) {
if (etat!=null && !etat.equals(aDonnee.ETAT_AJOUTE) && structureAPersonne!=null && !UtilString.isEmpty(structureAPersonne.getId())) {
System.out.println("modifier");
ce.getModel().set("etat", aDonnee.ETAT_MODIFIE);
} else {