Prepopulate birth logs with the "Animals" category.

This commit is contained in:
Michael Stenta 2018-02-22 11:12:29 -05:00
parent 2c439c8184
commit fadfb29a1c
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ function farm_livestock_farm_log_categories() {
*/
function farm_livestock_farm_log_categories_populate($log) {
$categories = array();
if ($log->type == 'farm_medical') {
if (in_array($log->type, array('farm_birth', 'farm_medical'))) {
$categories[] = 'Animals';
}
return $categories;