Skip to content

Commit

Permalink
Corrige la modification de la programmation d'un session joindin (#1613)
Browse files Browse the repository at this point in the history
  • Loading branch information
stakovicz authored Feb 10, 2025
1 parent 7d6ef33 commit 363c834
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
4 changes: 4 additions & 0 deletions sources/Afup/Forum/AppelConferencier.php
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,10 @@ public function modifierSession(

public function modifierJoindinSession($id, $joindin)
{
$value = 'NULL';
if ($joindin) {
$value = $this->_bdd->echapper($joindin);
}
$requete = 'UPDATE afup_sessions SET ';
$requete .= ' joindin = ' . $this->_bdd->echapper($joindin);
$requete .= ' WHERE session_id = ' . (int) $id;
Expand Down
13 changes: 5 additions & 8 deletions tests/behat/features/Admin/Events/Planning.feature
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
Feature: Administration - Évènements - Planning des sessions

@reloadDbWithTestData
Scenario Outline: Accès au planning des session(s)
Scenario: Accès au planning des session(s)
Given I am logged in as admin and on the Administration
And I follow "Planning"
Then the ".content h2" element should contain "Planning"
And I should see "3 SESSION(S)"
And I should see "<titre>"
And I should see "<speaker>"
And I should see "<id_joindin>"
And I should see "Jouons tous ensemble à un petit jeu Geoffrey Bachelet"
And I should see "Geoffrey Bachelet - AFUP(@ubermuda)"
And I should see "(JOIND.IN=24041)"

# modifier la programmation la session
When I follow "Modifier la session Jouons tous ensemble à un petit jeu"
Expand All @@ -17,6 +17,7 @@ Feature: Administration - Évènements - Planning des sessions
And I select "30" from "debut[i]"
And I select "11" from "fin[H]"
And I select "30" from "fin[i]"
When I fill in "joindin" with ""
And I press "Soumettre"
Then I should see "Le planning de la session a été modifiée"
And I should see "10:30 - 11:30 / La salle T"
Expand All @@ -25,7 +26,3 @@ Feature: Administration - Évènements - Planning des sessions
When I follow "Supprimer la session Jouons tous ensemble à un petit jeu"
Then I should see "La programmation de la session a été supprimée"
And I should not see "10:30 - 11:30 / La salle T"

Examples:
| titre | speaker | id_joindin |
| Jouons tous ensemble à un petit jeu Geoffrey Bachelet | Geoffrey Bachelet - AFUP(@ubermuda) | (JOIND.IN=24041) |

0 comments on commit 363c834

Please sign in to comment.