Merge pull request #10439 from exula/exula-fix-slack-settings

Update SettingsController.php to save Slack Settings
This commit is contained in:
snipe 2021-12-15 08:36:18 -08:00 committed by GitHub
commit 395401e9db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -674,6 +674,10 @@ class SettingsController extends Controller
return redirect()->to('admin')->with('error', trans('admin/settings/message.update.error'));
}
$setting->slack_endpoint = $request->input('slack_endpoint');
$setting->slack_channel = $request->input('slack_channel');
$setting->slack_botname = $request->input('slack_botname');
if ($setting->save()) {
return redirect()->route('settings.index')
->with('success', trans('admin/settings/message.update.success'));