use same code from actioncom card

This commit is contained in:
Frédéric FRANCE 2021-03-31 00:46:47 +02:00 committed by GitHub
parent 06e92bb262
commit d13435cc84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,6 +2,7 @@
/* Copyright (C) 2013-2018 Jean-François Ferry <hello+jf@librethic.io>
* Copyright (C) 2016 Gilles Poirier <glgpoirier@gmail.com>
* Copyright (C) 2019 Josep Lluís Amador <joseplluis@lliuretic.cat>
* Copyright (C) 2021 Frédéric France <frederic.france@netlogic.fr>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -355,7 +356,10 @@ if (!$ret) {
// Type
if (!empty($conf->global->AGENDA_USE_EVENT_TYPE)) {
print '<tr><td class="titlefield">'.$langs->trans("Type").'</td><td colspan="3">'.$act->type.'</td></tr>';
print '<tr><td class="titlefield">'.$langs->trans("Type").'</td><td>';
print $act->getTypePicto();
print $langs->trans("Action".$act->type_code);
print '</td></tr>';
}
// Full day event