| Line 128... |
Line 128... |
| 128 |
* (cas où l'on vient de voter pour celle et cela a créé la proposition, puis
|
128 |
* (cas où l'on vient de voter pour celle et cela a créé la proposition, puis
|
| 129 |
* on revote pour celle ci en changeant d'avis sans recharger la page)
|
129 |
* on revote pour celle ci en changeant d'avis sans recharger la page)
|
| 130 |
*/
|
130 |
*/
|
| 131 |
private function creerPropositionDeterminationInitiale() {
|
131 |
private function creerPropositionDeterminationInitiale() {
|
| 132 |
$idProposition = $this->ressources[1];
|
132 |
$idProposition = $this->ressources[1];
|
| - |
|
133 |
echo "ID proposition: [$idProposition]\n";
|
| 133 |
if ($idProposition === 0) {
|
134 |
if ($idProposition == 0) {
|
| 134 |
$propositionExiste = $this->verifierExistencePropositionInitiale();
|
135 |
$propositionExiste = $this->verifierExistencePropositionInitiale();
|
| 135 |
if ($propositionExiste === false) {
|
136 |
if ($propositionExiste === false) {
|
| 136 |
$idProposition = $this->creerPropositionInitiale();
|
137 |
$idProposition = $this->creerPropositionInitiale();
|
| 137 |
} else {
|
138 |
} else {
|
| 138 |
$idProposition = $this->getIdPropositionInitiale();
|
139 |
$idProposition = $this->getIdPropositionInitiale();
|