humhub / calendar

Create one-time or recurring events, invite and manage attendees, and keep track of all your events with the Calendar module.
28 stars 46 forks source link

Bug: Profile Calendar hidden in select dropdown #453

Closed felixhahnweilheim closed 7 months ago

felixhahnweilheim commented 7 months ago

Even if I activate the calendar in my profile I don't see the option when creating an event from global calendar.

Original post: https://community.humhub.com/content/perma?id=275108

Maybe this bug was introduced in https://github.com/humhub/calendar/pull/438/ ? @marc-farre

marc-farre commented 7 months ago

@felixhahnweilheim I don't have this issue on my instances (HumHub 1.15 and 1.16 with latest version of the Calendar module). Which version of HumHub and Calendar module are you using?

felixhahnweilheim commented 7 months ago

latest stable: 1.15.2

Calendar 1.5.8

PHP 8.0

no error log

I am talking about the global calendar view. Clicking on the plus button or directly a time in the calendar.

I only see spaces to select as target calendar.

marc-farre commented 7 months ago

@luke- fixed in PR https://github.com/humhub/calendar/pull/454

Sorry for this bug I've introduced. I didn't think that $user->moduleManager->canEnable('calendar') would return false when the module is already enabled, even if it's logic (in my mind, it was checking if we are allowed to enable it).

@felixhahnweilheim thanks for reporting the bug! Maybe you can rename this issue title by removing the "always" because it's only in the case where the calendar module is already enabled in the profile.