gitlab-org--gitlab-foss/changelogs/unreleased/sh-project-import-visibility-error.yml
Stan Hu 5c8cd42bbd Fix invalid visibility string comparison in project import
This resolves an "ArgumentError: comparison of String with 0 failed"
issue where the visibility_level is stored as a string in the project
import data because the value comes directly from the Web form. This
problem happened upon creating a project from a template or restoring a
project.

We now cast the value to an integer to guard against these kinds of
failures.

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/61692
2019-05-22 11:32:23 -07:00

5 lines
111 B
YAML

---
title: Fix invalid visibility string comparison in project import
merge_request: 28612
author:
type: fixed