random improvements (#5506)

* fix order of destroying form elements
* API documentation - fixes #1949
* make command path independent
* use PhpSubprocess to execute migrations
* allow to configure optional SAML attributes
* fix deprecation
* unify wording of exported state - fixes #5392
This commit is contained in:
Kevin Papst
2025-05-28 13:34:01 +02:00
committed by GitHub
parent 81107377f4
commit 0420eb27c7
19 changed files with 150 additions and 63 deletions

View File

@@ -43,7 +43,10 @@ class TimesheetEditForm extends AbstractType
{
use FormTrait;
public function __construct(private CustomerRepository $customers, private SystemConfiguration $systemConfiguration)
public function __construct(
private readonly CustomerRepository $customers,
private readonly SystemConfiguration $systemConfiguration
)
{
}
@@ -400,14 +403,17 @@ class TimesheetEditForm extends AbstractType
}
$builder->add('exported', YesNoType::class, [
'label' => 'exported'
'label' => 'exported',
'documentation' => [
'description' => 'If true, this timesheet will be flagged as being exported'
]
]);
}
protected function addBillable(FormBuilderInterface $builder, array $options): void
{
if ($options['include_billable']) {
$builder->add('billableMode', TimesheetBillableType::class, []);
$builder->add('billableMode', TimesheetBillableType::class);
}
$builder->addModelTransformer(new CallbackTransformer(