From e381e646b3e7025fef2dcd2688e9dbf26f1227e2 Mon Sep 17 00:00:00 2001 From: daraelmin Date: Sat, 25 Jun 2022 21:22:30 +0200 Subject: [PATCH] Fix css class declared in wrong param In print_liste_field_titre CSS class name can only be added in prefix parameter (except 'class="right"' for backward compatibility) If the title is centered, the field should be also --- htdocs/accountancy/bookkeeping/card.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/htdocs/accountancy/bookkeeping/card.php b/htdocs/accountancy/bookkeeping/card.php index efa9fc03c78..062fd03e7f9 100644 --- a/htdocs/accountancy/bookkeeping/card.php +++ b/htdocs/accountancy/bookkeeping/card.php @@ -637,7 +637,7 @@ if ($action == 'create') { print_liste_field_titre("Debit", "", "", "", "", 'class="right"'); print_liste_field_titre("Credit", "", "", "", "", 'class="right"'); if (empty($object->date_validation)) { - print_liste_field_titre("Action", "", "", "", "", 'width="60" class="center"'); + print_liste_field_titre("Action", "", "", "", "", 'width="60"', "", "", 'center '); } else { print_liste_field_titre(""); } @@ -704,9 +704,7 @@ if ($action == 'create') { print ''; print ''; print ''; - print ''; - print ''; - print ''; + print ''; } } else { print '';