Commit 98ae1564 authored by acrollet's avatar acrollet

Update warning message

parent b06ac42f
......@@ -247,8 +247,9 @@ class UpdateAvailabilityForm extends FormBase {
}
foreach ($booked_units as $unit) {
drupal_set_message(t('Cannot create event @start @end for @unit', [
drupal_set_message(t('Could not create event from @start to @end for unit @label with ID: @unit', [
'@unit' => $unit,
'@label' => $unit->label(),
'@start' => $start_date->format('Y-m-d'),
'@end' => $end_date->format('Y-m-d'),
]), 'warning');
......@@ -291,10 +292,11 @@ class UpdateAvailabilityForm extends FormBase {
}
foreach ($booked_units as $unit) {
drupal_set_message(t('Cannot create event @start @end for @unit', [
drupal_set_message(t('Could not create event from @start to @end for unit @label with ID: @unit', [
'@unit' => $unit,
'@start' => $start_date->format('Y-m-d H:i'),
'@end' => $end_date->format('Y-m-d H:i'),
'@label' => $unit->label(),
'@start' => $start_date->format('Y-m-d'),
'@end' => $end_date->format('Y-m-d'),
]), 'warning');
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment