From af91a7185a0c37434a1a1f33ba58718ae191fb7c Mon Sep 17 00:00:00 2001 From: FHenry Date: Mon, 30 Jul 2012 20:11:55 +0200 Subject: [PATCH 1/2] Checkstyle (from hudson) --- htdocs/commissions/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/commissions/index.php b/htdocs/commissions/index.php index c6988f19b8d..d7e024990d0 100644 --- a/htdocs/commissions/index.php +++ b/htdocs/commissions/index.php @@ -77,7 +77,7 @@ if ($agentid > 0) { print ''.$langs->trans('CommercialAgent').''; print ''; - print $form->select_dolusers($selected=$agentid,$htmlname='agentid',$show_empty=1,$exclude='',$disabled=0,$include='',$enableonly=''); + print $form->select_dolusers($agentid,'agentid',1,'',0,'',''); print ''; if (! $sortorder) $sortorder="ASC"; @@ -86,7 +86,7 @@ if ($agentid > 0) { else { print ''.$langs->trans('CommercialAgent').''; print ''; - print $form->select_dolusers($selected='',$htmlname='agentid',$show_empty=1,$exclude='',$disabled=0,$include='',$enableonly=''); + print $form->select_dolusers('','agentid',1,'',0,'',''); print ''; if (! $sortorder) $sortorder="ASC"; if (! $sortfield) $sortfield="u.login"; From bf2d0ea82a9c7b081a8536bbe270200a30c44523 Mon Sep 17 00:00:00 2001 From: FHenry Date: Mon, 30 Jul 2012 20:15:18 +0200 Subject: [PATCH 2/2] correct checkstyle --- htdocs/margin/tabs/productMargins.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/margin/tabs/productMargins.php b/htdocs/margin/tabs/productMargins.php index 04495eb5e7a..6fa027e4638 100644 --- a/htdocs/margin/tabs/productMargins.php +++ b/htdocs/margin/tabs/productMargins.php @@ -96,12 +96,12 @@ if ($id > 0 || ! empty($ref)) print ''; // Status (to sell) - print ''.$langs->trans("Status").' ('.$langs->trans("Sell").')'.''; + print ''.$langs->trans("Status").' ('.$langs->trans("Sell").')'; print $object->getLibStatut(2,0); print ''; // Status (to buy) - print ''.$langs->trans("Status").' ('.$langs->trans("Buy").')'.''; + print ''.$langs->trans("Status").' ('.$langs->trans("Buy").')'; print $object->getLibStatut(2,1); print '';