mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-22 09:53:35 +02:00
Allow tags to contain any character and only show exact matching parts.
This commit is contained in:
parent
78e3d36a5c
commit
f1601cac7f
3 changed files with 4 additions and 3 deletions
|
@ -203,12 +203,13 @@ class PartListsController extends AbstractController
|
|||
}
|
||||
|
||||
/**
|
||||
* @Route("/parts/by_tag/{tag}", name="part_list_tags")
|
||||
* @Route("/parts/by_tag/{tag}", name="part_list_tags", requirements={"tag": ".*"})
|
||||
*
|
||||
* @return JsonResponse|Response
|
||||
*/
|
||||
public function showTag(string $tag, Request $request, DataTableFactory $dataTable)
|
||||
{
|
||||
$tag = trim($tag);
|
||||
$table = $dataTable->createFromType(PartsDataTable::class, ['tag' => $tag])
|
||||
->handleRequest($request);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue