DarkmiraTour / community-event-manager

Web application with a collection of tools helping people organising community events such as multi-days conference with reminders, CRM and such
GNU General Public License v3.0
21 stars 22 forks source link

Fixes 103 - add multiple events management + link schedule to event #146

Closed kevinjhappy closed 5 years ago

kevinjhappy commented 5 years ago

PR information

Q A
Branch? Develop
Bug fix? no
New feature? yes
Tests pass? Yes
Related issue #103

Description

Add event management in homepage with CRUD option when a user is connected to admin.

A user can select a created event and this will open a session with the event id to manage. Once an event is selected, the project pages change to be linked to this event.

One event is linked to a lot of part of the project, schedule part has been updated to be linked to specific event management, but there is still a lot to do to complete the event management ( to be made in other issues as this one issue embark too many changes already)

NB: this list can be updated.

kevinjhappy commented 5 years ago

I also have an error when trying to go on Schedule page after having selected an event: NoEventSelectedException

This is thrown here, in src/Service/Event/EventService.php (line 68):

    public function getSelectedEvent(): Event
    {
        if ($this->session->has(self::EVENT_ID)) {
            throw new NoEventSelectedException(); // <---
        }

Yeah, missing a "!" :( Commited