Merge pull request 'Added Updated logic in asrs resource pages' (#649) from ranjith-dev into master
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled
Reviewed-on: #649
This commit was merged in pull request #649.
This commit is contained in:
@@ -112,12 +112,12 @@ class AsrsItemValidationResource extends Resource
|
||||
'In' => 'In',
|
||||
'Out' => 'Out',
|
||||
]),
|
||||
Forms\Components\Select::make('status')
|
||||
->label('Status')
|
||||
->options([
|
||||
'Updated' => 'Updated',
|
||||
'NotUpdated' => 'Not Updated',
|
||||
]),
|
||||
// Forms\Components\Select::make('status')
|
||||
// ->label('Status')
|
||||
// ->options([
|
||||
// 'Updated' => 'Updated',
|
||||
// 'NotUpdated' => 'Not Updated',
|
||||
// ]),
|
||||
Forms\Components\Hidden::make('created_by')
|
||||
->label('Created By')
|
||||
->default(Filament::auth()->user()?->name ?? ''),
|
||||
|
||||
@@ -10,6 +10,13 @@ class EditAsrsItemValidation extends EditRecord
|
||||
{
|
||||
protected static string $resource = AsrsItemValidationResource::class;
|
||||
|
||||
protected function mutateFormDataBeforeSave(array $data): array
|
||||
{
|
||||
$data['status'] = 'Updated';
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
||||
protected function getHeaderActions(): array
|
||||
{
|
||||
return [
|
||||
|
||||
Reference in New Issue
Block a user