Closed staxDB closed 4 years ago
i guess the calendarsConfig.php file in line 50/51 should look like this:
'disabled' => !$itemType->enabled,
'isSpaceGlobal' => ($contentContainer === null),
]);?>
@staxDB would you mind opening a pr for that?
i've tried your fix, the error disappaers but i can't change the global calendar, instead of the edit button(pencil) there is a text: (generell)
this text is only in the admin section ACP - Module - Calendar - configure - other calendars
under the space section there is still the edit button (pencil) Space - Option (gear) - Module - Calendar - - configure - other calendars
@bumrufus I think that's what the humhub team wanted. Anyway, I can't see a bug here...
I know what you mean. But take a look at the file I modified: I only added one line here so that no error message is generated in the view.
This file calls the sub-view _calendarTypeItem.php
in line 45, in which the following happens:
Is it a global calendar, the text general
is printed out (which I think should be done in case of a global configuration, i.e. in the admin area).
If its a normal space-calendar, the edit-button will be printed..
To sum it up: This has basically nothing to do with my fix. This would require you to create your own issue, if this is an error at all.
ok thx, i just want to let u know that there is this error (or not) so maybe the humhub team could look into it. since everything is working for me its ok for me because i dont want to edit the calendar global :-) thx for your fix
I agree with you! I also think it would be nice to have the ability to edit other calendars in the global calendar view and save these settings for each user individually..... I think I'll open a new issue for that
The issue should be fixed already, please create a feature request issue if you have some ideas for enhancements.
Issue with the latest Calendar Module v0.6.18 and HH v1.3.1 or HH v1.3.2dev: When clicking on a calendar view, then on the
options
of this calendar an at least onother calendars
I get this error message (extracted from the log):