Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit 4481a94

Browse files
committed
Fix slug issues - Fix #1273
1 parent d7c4378 commit 4481a94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/plugins/conf.sql/SqlConfDriver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ protected function _loadRepository($slugOrAlias, $value){
417417
protected function uniquifySlug($slug, $repositoryId = null){
418418

419419
if(!empty($repositoryId)){
420-
$res = dibi::query("SELECT [slug],[uuid] FROM [ajxp_repo] WHERE [uuid] != %s AND [slug] LIKE '".$slug."%'", $repositoryId);
420+
$res = dibi::query("SELECT [slug],[uuid] FROM [ajxp_repo] WHERE [uuid] != %s AND [slug] = %s", $repositoryId, $slug);
421421
}else{
422422
$res = dibi::query("SELECT [slug],[uuid] FROM [ajxp_repo] WHERE [slug] LIKE '".$slug."%'");
423423
}

0 commit comments

Comments
 (0)