Skip to content

Commit 3fcd9fb

Browse files
Merge pull request #2946 from coreshop/upmerge/4.1_5.0
[UPMERGE] 4.1 -> 5.0
2 parents af23d01 + 041144e commit 3fcd9fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CoreShop/Bundle/CoreBundle/Controller/CustomerTransformerController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function checkForNameDuplicatesAction(Request $request): JsonResponse
4040

4141
if ($value !== null) {
4242
$list = $this->getCompanyRepository()->getList();
43-
$list->addConditionParam(sprintf('name LIKE "%%%s%%"', (string) $value));
43+
$list->addConditionParam('name LIKE ?', '%' . $value . '%');
4444
$foundObjects = $list->getData();
4545
}
4646

0 commit comments

Comments
 (0)