mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-04 15:32:35 +00:00
#591 - notification-channels
This commit is contained in:
@ -13,7 +13,7 @@ class EditChannel
|
||||
public function edit(NotificationChannel $notificationChannel, User $user, array $input): void
|
||||
{
|
||||
$notificationChannel->fill([
|
||||
'label' => $input['label'],
|
||||
'label' => $input['name'],
|
||||
'project_id' => isset($input['global']) && $input['global'] ? null : $user->current_project_id,
|
||||
]);
|
||||
$notificationChannel->save();
|
||||
@ -26,7 +26,7 @@ public function edit(NotificationChannel $notificationChannel, User $user, array
|
||||
public static function rules(array $input): array
|
||||
{
|
||||
return [
|
||||
'label' => 'required',
|
||||
'name' => 'required',
|
||||
];
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user