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',
|
'In' => 'In',
|
||||||
'Out' => 'Out',
|
'Out' => 'Out',
|
||||||
]),
|
]),
|
||||||
Forms\Components\Select::make('status')
|
// Forms\Components\Select::make('status')
|
||||||
->label('Status')
|
// ->label('Status')
|
||||||
->options([
|
// ->options([
|
||||||
'Updated' => 'Updated',
|
// 'Updated' => 'Updated',
|
||||||
'NotUpdated' => 'Not Updated',
|
// 'NotUpdated' => 'Not Updated',
|
||||||
]),
|
// ]),
|
||||||
Forms\Components\Hidden::make('created_by')
|
Forms\Components\Hidden::make('created_by')
|
||||||
->label('Created By')
|
->label('Created By')
|
||||||
->default(Filament::auth()->user()?->name ?? ''),
|
->default(Filament::auth()->user()?->name ?? ''),
|
||||||
|
|||||||
@@ -10,6 +10,13 @@ class EditAsrsItemValidation extends EditRecord
|
|||||||
{
|
{
|
||||||
protected static string $resource = AsrsItemValidationResource::class;
|
protected static string $resource = AsrsItemValidationResource::class;
|
||||||
|
|
||||||
|
protected function mutateFormDataBeforeSave(array $data): array
|
||||||
|
{
|
||||||
|
$data['status'] = 'Updated';
|
||||||
|
|
||||||
|
return $data;
|
||||||
|
}
|
||||||
|
|
||||||
protected function getHeaderActions(): array
|
protected function getHeaderActions(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
|
|||||||
Reference in New Issue
Block a user