Subversion Repositories eFlore/Applications.coel

Compare Revisions

Ignore whitespace Rev 1483 → Rev 1484

/branches/v1.1-aramon/src/org/tela_botanica/client/modeles/commentaire/Commentaire.java
16,7 → 16,7
public class Commentaire extends aDonnee {
 
private static final long serialVersionUID = 7216356814682582569L;
private static final String PREFIXE = "ccm";
public static final String PREFIXE = "ccm";
private Collection collection = null;
private CollectionACommentaire collectionACommentaire = null;
public static String[] champsObligatoires = {"ccm_id_commentaire"};
/branches/v1.1-aramon/src/org/tela_botanica/client/modeles/commentaire/CommentaireAsyncDao.java
102,14 → 102,9
if (responseObject.get("commentaires").isArray() != null) {
final JSONArray reponse = responseObject.get("commentaires").isArray();
 
CommentaireListe commentaires = new CommentaireListe(reponse, responseObject.get("nbElements").isNumber(), vueARafraichir);
CommentaireListe commentaires;
if (reponse.get(1).isObject() != null) {
commentaires = new CommentaireListe(reponse.get(1).isArray());
} else {
commentaires = new CommentaireListe(reponse.get(1).isArray(), reponse.get(0).isNumber(), vueARafraichir);
}
commentaires.setTaillePage(nbElements);
commentaires.setPageCourante(start);