OpenSlides / OpenSlides/openslides-meta

Fix 'reset to default' in meeting setting

Open Beginner friendly
#561 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
PLpgSQL
Stars
0
Forks
25
Avg merge
1d 2h
Merged PRs (30d)
12

Description

Describe the bug
If you reset the settings in the motions or all then the following error is thown

Error: Action meeting.update: data.motions_block_slide_columns must be bigger than or equal to 1

How to Reproduce

  1. open meeting > settings
  2. in three dot menu > reset to default
  3. Error is thrown

Expected behavior
settings should reset correctly
The default: 1 is needed in the meta for this field

Contributor guide

No contributing guide indexed for this repository

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

Reproduce the reset flow from Meeting > Settings, then locate the metadata or default-setting definition for motions_block_slide_columns referenced by the meeting.update error. Verify that resetting motions or all settings supplies the default value 1 and completes without an error; add or update the relevant test if one exists.

Written by the indexing model from the issue text.

Assessment

Domain
backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.