Commented unwanted mount function
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
This commit is contained in:
@@ -15,27 +15,30 @@ class EditProductCharacteristicsMaster extends EditRecord
|
||||
return 'Edit Characteristics'; // This will replace the "New product characteristics master"
|
||||
}
|
||||
|
||||
public function mount(int|string $record): void
|
||||
{
|
||||
parent::mount($record);
|
||||
// public function mount(int|string $record): void
|
||||
// {
|
||||
// parent::mount($record);
|
||||
|
||||
$model = $this->getRecord(); // actual model instance
|
||||
// $model = $this->getRecord(); // actual model instance
|
||||
|
||||
// Step 1: Fill the actual saved fields first
|
||||
$this->form->fill([
|
||||
'plant_id' => $model->plant_id,
|
||||
'line_id' => $model->line_id,
|
||||
'item_id' => $model->item_id,
|
||||
'machine_id' => $model->machine_id,
|
||||
'name' => $model->name,
|
||||
'type' => $model->type,
|
||||
'upper' => $model->upper,
|
||||
'lower' => $model->lower,
|
||||
'middle' => $model->middle,
|
||||
'work_group_master_id' => optional($model->machine)->work_group_master_id,
|
||||
]);
|
||||
|
||||
}
|
||||
// // Step 1: Fill the actual saved fields first
|
||||
// $this->form->fill([
|
||||
// 'plant_id' => $model->plant_id,
|
||||
// 'item_id' => $model->item_id,
|
||||
// 'line_id' => $model->line_id,
|
||||
// 'machine_id' => $model->machine_id,
|
||||
// 'name' => $model->name,
|
||||
// 'characteristics_type' => $model->characteristics_type,
|
||||
// 'inspection_type' => $model->inspection_type,
|
||||
// // 'type' => $model->type,
|
||||
// 'upper' => $model->upper,
|
||||
// 'lower' => $model->lower,
|
||||
// 'middle' => $model->middle,
|
||||
// 'created_by' => $model->created_by,
|
||||
// 'updated_by' => $model->updated_by,
|
||||
// 'work_group_master_id' => optional($model->machine)->work_group_master_id,
|
||||
// ]);
|
||||
// }
|
||||
|
||||
protected function getHeaderActions(): array
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user