Link milk logs to the quick form that created them.

This commit is contained in:
Michael Stenta 2018-10-01 16:26:34 -04:00
parent 6e9221f15e
commit e9b408119e
1 changed files with 6 additions and 1 deletions

View File

@ -552,5 +552,10 @@ function farm_livestock_milk_form_submit($form, &$form_state) {
);
// Create a new farm quantity log.
farm_quantity_log_create($log_type, $log_name, REQUEST_TIME, TRUE, $assets, $measurements);
$log = farm_quantity_log_create($log_type, $log_name, REQUEST_TIME, TRUE, $assets, $measurements);
// Link the log to the quick form.
if (function_exists('farm_quick_entity_link')) {
farm_quick_entity_link('farm_livestock_milk_form', 'log', $log);
}
}