mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-14 20:35:08 +02:00
Cache list of builtin ressource attachments.
This should be a bit faster than searching every time.
This commit is contained in:
parent
3277d98ee2
commit
1395dae6e4
3 changed files with 164 additions and 33 deletions
|
@ -83,7 +83,10 @@ class AttachmentFormType extends AbstractType
|
|||
$builder->add('url', TextType::class, [
|
||||
'label' => $this->trans->trans('attachment.edit.url'),
|
||||
'required' => false,
|
||||
'attr' => ['data-autocomplete' => $this->urlGenerator->generate('typeahead_builtInRessources', ['query' => 'QUERY'])
|
||||
'attr' => [
|
||||
'data-autocomplete' => $this->urlGenerator->generate('typeahead_builtInRessources', ['query' => 'QUERY']),
|
||||
//Disable browser autocomplete
|
||||
'autocomplete' => 'off'
|
||||
],
|
||||
'constraints' => [
|
||||
$options['allow_builtins'] ? new UrlOrBuiltin() : new Url()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue