nextcloud / nextcloud/calendar

[Bug]: Primary Calendar selection changes from visibility change

Open
#7,069 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug needs info
Dominant language
JavaScript
Stars
1.2k
Forks
332
Avg merge
16h 13m
Merged PRs (30d)
137

Description

⚠️ This issue respects the following points: ⚠️
Bug description

I have 2 Calendars in Nextcloud and one has been selected as primary.
If I (willingly or accidentally) toggle the visibility of the primary calendar, the primary calendar changes to the other one. Under calendar settings it will still show the correct one until I reload.

This is a problem, since accepted invites will go into the wrong calendar.

Steps to reproduce
  1. set up 2 calendars for your user (cal-A and cal-B)
  2. select one as primary (cal-A)
  3. toggle visibility of the primary calendar (cal-A)
  4. refresh to see changed primary calendar selection in calendar settings
Expected behavior

Primary calendar should be cal-A, but is cal-B

Nextcloud Server version

30

Operating system

Debian/Ubuntu

PHP engine version

None

Web server

None

Database engine version

MariaDB

Is this bug present after an update or on a fresh install?

None

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

What user-backends are you using?
  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other
Configuration report

List of activated Apps

Nextcloud Signing status

Nextcloud Logs

Additional info

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the calendar UI steps with two calendars, selecting cal-A as primary, toggling its visibility, and refreshing. Trace the primary-calendar and visibility-selection handling; done when cal-A remains primary after the visibility toggle and refresh, with invites still targeting it.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.