Skip to content

Commit f771d75

Browse files
authored
Merge pull request #6701 from meyerlor/fix/repo-invalid-path-edit-locked
Fix/repo invalid path edit locked
2 parents 1bd42a3 + fdddb79 commit f771d75

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lizmap/modules/lizmap/classes/lizmap.class.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ public static function constructRepositoryForm($rep, $form)
211211
$ctrl = new jFormsControlCheckbox($k);
212212
} elseif ($k == 'path' && $rootRepositories != '') {
213213
if ($rep == null
214+
|| !$rep->hasValidPath()
214215
|| substr($rep->getPath(), 0, strlen($rootRepositories)) === $rootRepositories
215216
) {
216217
$ctrl = new jFormsControlMenulist($k);
@@ -261,6 +262,7 @@ public static function constructRepositoryForm($rep, $form)
261262
// FIXME don't use getData() which is deprecated
262263
$v = $rep->getData($k);
263264
if ($k == 'path' && $rootRepositories != ''
265+
&& $rep->hasValidPath()
264266
&& substr($rep->getPath(), 0, strlen($rootRepositories)) === $rootRepositories
265267
) {
266268
$v = $rep->getPath();

0 commit comments

Comments
 (0)