Save a SEO title and description when creating an incident
This commit is contained in:
@@ -104,6 +104,10 @@ class CreateIncidentCommandHandler
|
||||
// Store any meta?
|
||||
if ($meta = $command->meta) {
|
||||
foreach ($meta as $key => $value) {
|
||||
if (empty($value)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
Meta::create([
|
||||
'key' => $key,
|
||||
'value' => $value,
|
||||
|
||||
@@ -131,7 +131,8 @@ class IncidentController extends Controller
|
||||
Binput::get('stickied', false),
|
||||
Binput::get('occurred_at'),
|
||||
null,
|
||||
[]
|
||||
[],
|
||||
['seo' => Binput::get('seo', [])]
|
||||
));
|
||||
} catch (ValidationException $e) {
|
||||
return cachet_redirect('dashboard.incidents.create')
|
||||
|
||||
Reference in New Issue
Block a user