Skip to content

Commit

Permalink
Fix: 3.9 Problem of rowspan in edit mode
Browse files Browse the repository at this point in the history
  • Loading branch information
aspangaro committed Mar 15, 2016
1 parent 76c1af0 commit 4167663
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions htdocs/user/card.php
Expand Up @@ -8,7 +8,7 @@
* Copyright (C) 2011 Herve Prot <herve.prot@symeos.com>
* Copyright (C) 2012 Juanjo Menent <jmenent@2byte.es>
* Copyright (C) 2013 Florian Henry <florian.henry@open-concept.pro>
* Copyright (C) 2013-2015 Alexandre Spangaro <aspangaro.dolibarr@gmail.com>
* Copyright (C) 2013-2016 Alexandre Spangaro <aspangaro.dolibarr@gmail.com>
* Copyright (C) 2015 Jean-François Ferry <jfefe@aternatik.fr>
* Copyright (C) 2015 Ari Elbaz (elarifr) <github@accedinfo.com>
*
Expand Down Expand Up @@ -1065,7 +1065,7 @@
print "</tr>\n";

// Accountancy code
if ($conf->salaries->enabled)
if ($conf->accounting->enabled)
{
print '<tr><td>'.$langs->trans("AccountancyCode").'</td>';
print '<td>';
Expand Down Expand Up @@ -1402,7 +1402,7 @@
print "</tr>\n";

// Accountancy code
if ($conf->salaries->enabled)
if ($conf->accounting->enabled)
{
print '<tr><td>'.$langs->trans("AccountancyCode").'</td>';
print '<td>'.$object->accountancy_code.'</td>';
Expand Down Expand Up @@ -1749,13 +1749,14 @@

dol_fiche_head($head, 'user', $title, 0, 'user');

$rowspan=17;
$rowspan=22;
if (isset($conf->file->main_authentication) && preg_match('/openid/',$conf->file->main_authentication) && ! empty($conf->global->MAIN_OPENIDURL_PERUSER)) $rowspan++;
if (! empty($conf->societe->enabled)) $rowspan++;
if (! empty($conf->adherent->enabled)) $rowspan++;
if (! empty($conf->skype->enabled)) $rowspan++;
if (! empty($conf->salaries->enabled) && ! empty($user->rights->salaries->read)) $rowspan = $rowspan+3;
if (! empty($conf->agenda->enabled)) $rowspan++;
if (! empty($conf->accounting->enabled)) $rowspan++;

print '<table width="100%" class="border">';

Expand Down Expand Up @@ -2173,7 +2174,7 @@
print "</tr>\n";

// Accountancy code
if ($conf->salaries->enabled)
if ($conf->accounting->enabled)
{
print "<tr>";
print '<td>'.$langs->trans("AccountancyCode").'</td>';
Expand Down

0 comments on commit 4167663

Please sign in to comment.