Skip to content

Commit 035eb3d

Browse files
authored
fix: transfer_time conversion on user edit page (phpvms#2076)
1 parent b07d4ef commit 035eb3d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/Filament/Resources/Users/Pages/EditUser.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ protected function mutateFormDataBeforeFill(array $data): array
3737
{
3838
$data['name'] = $this->record->name;
3939
$data['email'] = $this->record->email;
40+
$data['transfer_time'] = $this->record->transfer_time / 60;
4041

4142
return $data;
4243
}
@@ -49,6 +50,8 @@ protected function mutateFormDataBeforeSave(array $data): array
4950
unset($data['password']);
5051
}
5152

53+
$data['transfer_time'] *= 60;
54+
5255
return $data;
5356
}
5457

0 commit comments

Comments
 (0)