Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stable29] fix(theming): Don't reset the cachebuster value when we reset theming #46434

Merged
merged 1 commit into from
Jul 11, 2024

Conversation

backportbot[bot]
Copy link

@backportbot backportbot bot commented Jul 11, 2024

Backport of PR #46428

Signed-off-by: Marcel Müller <marcel-mueller@gmx.de>
@backportbot backportbot bot added 3. to review Waiting for reviews tests Related to tests labels Jul 11, 2024
@backportbot backportbot bot added this to the Nextcloud 29.0.4 milestone Jul 11, 2024
@@ -460,7 +460,11 @@
* Revert all settings to the default value
*/
public function undoAll(): void {
// Remember the current cachebuster value, as we do not want to reset this value
// Otherwise this can lead to caching issues as the value might be known to a browser already
$cacheBusterKey = $this->config->getAppValue('theming', 'cachebuster', '0');

Check notice

Code scanning / Psalm

DeprecatedMethod Note

The method OCP\IConfig::getAppValue has been marked as deprecated
$this->config->deleteAppValues('theming');
$this->config->setAppValue('theming', 'cachebuster', $cacheBusterKey);

Check notice

Code scanning / Psalm

DeprecatedMethod Note

The method OCP\IConfig::setAppValue has been marked as deprecated
@SystemKeeper SystemKeeper merged commit 0986d29 into stable29 Jul 11, 2024
176 checks passed
@SystemKeeper SystemKeeper deleted the backport/46428/stable29 branch July 11, 2024 06:28
@Altahrim Altahrim mentioned this pull request Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews tests Related to tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants