mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-24 02:38:50 +02:00
Make URLs created by filter form a lot shorter
This commit is contained in:
parent
8f94a58c71
commit
87913ba3b5
5 changed files with 80 additions and 6 deletions
|
@ -210,11 +210,11 @@ class PartFilterType extends AbstractType
|
|||
]);
|
||||
|
||||
$builder->add('submit', SubmitType::class, [
|
||||
'label' => 'Update',
|
||||
'label' => 'filter.submit',
|
||||
]);
|
||||
|
||||
$builder->add('reset', ResetType::class, [
|
||||
'label' => 'Reset',
|
||||
$builder->add('discard', ResetType::class, [
|
||||
'label' => 'filter.discard',
|
||||
]);
|
||||
|
||||
}
|
||||
|
|
|
@ -171,10 +171,10 @@ final class TriStateCheckboxType extends AbstractType implements DataTransformer
|
|||
case 'true':
|
||||
return true;
|
||||
case 'false':
|
||||
case '':
|
||||
return false;
|
||||
case 'indeterminate':
|
||||
case 'null':
|
||||
case '':
|
||||
return null;
|
||||
default:
|
||||
throw new InvalidArgumentException('Invalid value encountered!: '.$value);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue