Commit f62386e4 authored by droces's avatar droces

Additional fix to above

parent 978b1df5
......@@ -43,6 +43,9 @@ function log_event_to_history(Node $booking, $type, $description, $date) {
}
$field_history_val = $booking->get('field_history')->getValue();
if (! in_array(0, $field_history_val)) {
return NULL;
}
if (! in_array('value', $field_history_val[0])) {
return NULL;
}
......
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