Use the correct type

[MAILPOET-2535]
This commit is contained in:
Pavel Dohnal
2019-11-19 13:54:34 +01:00
committed by Jack Kitterhing
parent 5e5d4c3ff8
commit 61f0250822

View File

@ -136,7 +136,7 @@ class PostNotificationScheduler {
if (!$relation) {
$relation = NewsletterOption::create();
$relation->newsletter_id = $newsletter->id;
$relation->option_field_id = $option_field->id;
$relation->option_field_id = (int)$option_field->id;
}
$relation->value = $schedule;
$relation->save();