New: All professional id can contains up to 128 chars instead of 32.

This commit is contained in:
Laurent Destailleur 2012-02-25 01:34:05 +01:00
parent 6cdee3ceb0
commit 9d9439e498
2 changed files with 7 additions and 3 deletions

View File

@ -52,6 +52,7 @@ For users:
- New: Increase usability of module project.
- New: Automatic list of documents in ECM module is ok for customers,
suppliers invoice, orders, customers orders, proposals and social contributions.
- New: All professional id can contains up to 128 chars instead of 32.
- New: [ task #176 ] Allow to use ODT templates for proposals and orders like it's done for invoices
- Fix: Can use POS module with several concurrent users.
- Fix: Installer don't fails with Mysql version that added a ssl_cypher field.

View File

@ -528,7 +528,7 @@ class FormCompany
}
}
$sql.= " ORDER BY nom ASC";
$resql = $this->db->query($sql);
if ($resql)
{
@ -669,7 +669,7 @@ class FormCompany
{
global $conf,$langs;
$formlength=24;
$formlength=0;
if ($country_code == 'FR' && empty($conf->global->MAIN_DISABLEPROFIDRULES))
{
if ($idprof==1) $formlength=9;
@ -691,7 +691,10 @@ class FormCompany
if (! $selected && $idprof==3) $selected=$this->idprof3;
if (! $selected && $idprof==4) $selected=$this->idprof4;
$out = '<input type="text" name="'.$htmlname.'" size="'.($formlength+1).'" maxlength="'.$formlength.'" value="'.$selected.'">';
$maxlength=$formlength;
if (empty($formlength)) { $formlength=24; $maxlength=128; }
$out = '<input type="text" name="'.$htmlname.'" size="'.($formlength+1).'" maxlength="'.$maxlength.'" value="'.$selected.'">';
return $out;
}