Commit 0566bbd0 authored by Stan Hu's avatar Stan Hu Committed by Douglas Barbosa Alexandre

Fix "protected branches only" checkbox not set properly at init

The `only_protected_branches` value was being enabled by default
even though the checkbox was default off. In EE, this wasn't a
problem because there was EE-specific code to update the
entire form.

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/53515
parent 1ddde35e
......@@ -30,6 +30,7 @@ export default class MirrorRepos {
this.$password.on('input.updateUrl', () => this.debouncedUpdateUrl());
this.initMirrorSSH();
this.updateProtectedBranches();
}
initMirrorSSH() {
......
---
title: Fix "protected branches only" checkbox not set properly at init
merge_request: 23409
author:
type: fixed
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment