mirror of https://github.com/kcal-app/kcal.git
Add detail field to entry item summary when present
This commit is contained in:
parent
05736cec30
commit
06fa79f1ed
|
@ -215,6 +215,9 @@ class JournalEntryController extends Controller
|
|||
}
|
||||
$entries[$entry_key]->summary .= (!empty($entries[$entry_key]->summary) ? ', ' : null);
|
||||
$entries[$entry_key]->summary .= "{$ingredient['amount']} {$unit} {$item->name}";
|
||||
if (isset($item->detail) && !empty($item->detail)) {
|
||||
$entries[$entry_key]->summary .= ", {$item->detail}";
|
||||
}
|
||||
}
|
||||
|
||||
foreach ($entries as $entry) {
|
||||
|
|
Loading…
Reference in New Issue