47,12 → 47,11 |
chaineRequete += "&auteur.id="+commentaire.getContributeur().getId(); |
} |
|
// TODO voir à quoi on rattache les commentaires |
if(commentaire.getParent() != null && commentaire.getParent().getId() != null) { |
if(commentaire.getParent() instanceof PropositionDetermination) { |
chaineRequete += "&ce_proposition="+commentaire.getParent().getId(); |
} else if(commentaire.getParent() instanceof Commentaire) { |
chaineRequete += "&ce_commentaire_parent="+commentaire.getParent().getId(); |
chaineRequete += "&id_parent="+commentaire.getParent().getId(); |
PropositionDetermination propositionParente = commentaire.getPropositionParenteOuNulle(); |
if(propositionParente != null) { |
chaineRequete += "&proposition="+commentaire.getPropositionParenteOuNulle(); |
} |
} |
chaineRequete += "&texte="+commentaire.getCommentaire()+ |