GEWIS / gewisweb

GEWIS Website
https://gewis.nl
GNU General Public License v3.0
16 stars 33 forks source link

Cannot upload photos to album if album does not yet have start date #1787

Closed tomudding closed 5 months ago

tomudding commented 5 months ago

Current behaviour

To make uploading photos easier, it is not mandatory to add a start/end datetime to newly created albums. However, this breaks the upload as the start datetime is actually necessary:

https://github.com/GEWIS/gewisweb/blob/637a3da6530f3b5702f417f5cc72f539bdee25e6/module/Photo/src/Controller/AlbumAdminController.php#L204

Desired behaviour

Do not return a year when it is not defined.

Steps to reproduce

Create an album without setting a start datetime, try to upload photos.

Website version

637a3da6530f3b5702f417f5cc72f539bdee25e6

What operating are you seeing the problem on?

No response

What browsers are you seeing the problem on?

No response

Other information

Originally reported by the IAO.