Fix: [ bug #2715 ] Statistics page has broken layout with long thirdparty names
This commit is contained in:
parent
d7e9bccad6
commit
7185cfeb84
@ -22,6 +22,7 @@ Fix: [ bug #2861 ] Undefined variable $res when migrating
|
|||||||
Fix: [ bug #2837 ] Product list table column header does not match column body
|
Fix: [ bug #2837 ] Product list table column header does not match column body
|
||||||
Fix: [ bug #2835 ] Customer prices of a product shows incorrect history order
|
Fix: [ bug #2835 ] Customer prices of a product shows incorrect history order
|
||||||
Fix: [ bug #2814 ] JPEG photos are not displayed in Product photos page
|
Fix: [ bug #2814 ] JPEG photos are not displayed in Product photos page
|
||||||
|
Fix: [ bug #2715 ] Statistics page has broken layout with long thirdparty names
|
||||||
|
|
||||||
***** ChangeLog for 3.5.6 compared to 3.5.5 *****
|
***** ChangeLog for 3.5.6 compared to 3.5.5 *****
|
||||||
Fix: Avoid missing class error for fetch_thirdparty method #1973
|
Fix: Avoid missing class error for fetch_thirdparty method #1973
|
||||||
|
|||||||
@ -217,6 +217,13 @@ complete_head_from_modules($conf,$langs,null,$head,$h,$type);
|
|||||||
|
|
||||||
dol_fiche_head($head,'byyear',$langs->trans("Statistics"));
|
dol_fiche_head($head,'byyear',$langs->trans("Statistics"));
|
||||||
|
|
||||||
|
$tmp_companies = $form->select_thirdparty_list($socid,'socid',$filter,1, 0, 0, array(), '', 1);
|
||||||
|
//Array passed as an argument to Form::selectarray to build a proper select input
|
||||||
|
$companies = array();
|
||||||
|
|
||||||
|
foreach ($tmp_companies as $value) {
|
||||||
|
$companies[$value['value']] = $value['label'];
|
||||||
|
}
|
||||||
|
|
||||||
print '<div class="fichecenter"><div class="fichethirdleft">';
|
print '<div class="fichecenter"><div class="fichethirdleft">';
|
||||||
|
|
||||||
@ -232,7 +239,7 @@ print '<div class="fichecenter"><div class="fichethirdleft">';
|
|||||||
print '<tr><td>'.$langs->trans("ThirdParty").'</td><td>';
|
print '<tr><td>'.$langs->trans("ThirdParty").'</td><td>';
|
||||||
if ($mode == 'customer') $filter='s.client in (1,2,3)';
|
if ($mode == 'customer') $filter='s.client in (1,2,3)';
|
||||||
if ($mode == 'supplier') $filter='s.fournisseur = 1';
|
if ($mode == 'supplier') $filter='s.fournisseur = 1';
|
||||||
print $form->select_company($socid,'socid',$filter,1);
|
print $form->selectarray('socid', $companies, $socid, 1, 0, 0, 'style="width: 100%"');
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
// User
|
// User
|
||||||
print '<tr><td>'.$langs->trans("CreatedBy").'</td><td>';
|
print '<tr><td>'.$langs->trans("CreatedBy").'</td><td>';
|
||||||
|
|||||||
@ -836,7 +836,7 @@ class Form
|
|||||||
$out.= '<option value="'.$obj->rowid.'">'.$label.'</option>';
|
$out.= '<option value="'.$obj->rowid.'">'.$label.'</option>';
|
||||||
}
|
}
|
||||||
|
|
||||||
array_push($outarray, array('key'=>$obj->rowid, 'value'=>$obj->name, 'label'=>$obj->name));
|
array_push($outarray, array('key'=>$obj->rowid, 'value'=>$obj->rowid, 'label'=>$label));
|
||||||
|
|
||||||
$i++;
|
$i++;
|
||||||
if (($i % 10) == 0) $out.="\n";
|
if (($i % 10) == 0) $out.="\n";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user