Skip to content

Fix bug where the refresh interval setting was displayed as "never" and could get overwritten on save for values outside the options list (#10292) - #10322

Open
taylorsatula wants to merge 2 commits into
roundcube:masterfrom
taylorsatula:fix-10292-refresh-interval
Open

taylorsatula wants to merge 2 commits into
roundcube:masterfrom
taylorsatula:fix-10292-refresh-interval

Conversation

@taylorsatula

Copy link
Copy Markdown

Fixes #10292

The select only offered 0 (never) and whole minutes [1,3,5,10,15,30,60], so values like 30 seconds or 2 minutes rendered as "never", and saving the form stored 0, wiping the setting. Make the select seconds-based (same pattern as draft_autosave in the same function), add the current interval as an extra option when it's not in the list, and store the posted value as-is. Adds an everynseconds label for sub-minute values.

@alecpl

alecpl commented Sep 2, 2026

Copy link
Copy Markdown
Member

Please, do not include Changelog entries, they will produce a conflict whenever something is added there.

@taylorsatula

taylorsatula commented Sep 2, 2026

Copy link
Copy Markdown
Author

Please, do not include Changelog entries, they will produce a conflict whenever something is added there.

Sorry about that! I'll keep things out of changelog in future PRs. Do you want me to edit this one or can it be saved with a cherrypick?

$labels['showinlineimages'] = 'Display attached images below the message';
$labels['autosavedraft'] = 'Automatically save draft';
$labels['everynminutes'] = 'every $n minute(s)';
$labels['everynseconds'] = 'every $n second(s)';

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Setting the interval to 1 second really would not make much sense. So, this can be just "every $n seconds". Also, we probably should introduce some minimum value, e.g. 10 seconds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

UI does not properly show refresh_interval from configuration

2 participants