Merge and rename method into camel format

This commit is contained in:
Laurent Destailleur 2016-03-04 16:28:38 +01:00
parent 6e8b176d8d
commit cbd102fa45
3 changed files with 19 additions and 3 deletions

View File

@ -12,6 +12,22 @@ Upgrading to any other version or any other database system is abolutely require
make a Dolibarr upgrade.
***** ChangeLog for 4.0 compared to 3.9.* *****
For users:
For developers:
WARNING:
Dolibarr 4.0 should be compatible with PHP 7 but more feedbacks are still expected to confirm that.
Following changes may create regression for some external modules, but were necessary to make
Dolibarr better:
- Method select_type_comptes_financiers() has been renamed into selectTypeOfBankAccount()
***** ChangeLog for 3.9.0 compared to 3.8.* *****
For users:
NEW: A new and more modern look for "eldy" theme.

View File

@ -286,7 +286,7 @@ if ($action == 'create')
// Type
print '<tr><td class="fieldrequired">'.$langs->trans("AccountType").'</td>';
print '<td colspan="3">';
$formbank->select_type_comptes_financiers(isset($_POST["type"])?$_POST["type"]:1,"type");
$formbank->selectTypeOfBankAccount(isset($_POST["type"])?$_POST["type"]:1,"type");
print '</td></tr>';
// Currency
@ -843,7 +843,7 @@ else
// Type
print '<tr><td class="fieldrequired">'.$langs->trans("AccountType").'</td>';
print '<td colspan="3">';
$formbank->select_type_comptes_financiers((isset($_POST["type"])?$_POST["type"]:$account->type),"type");
$formbank->selectTypeOfBankAccount((isset($_POST["type"])?$_POST["type"]:$account->type),"type");
print '</td></tr>';
// Currency

View File

@ -49,7 +49,7 @@ class FormBank
* @param string $htmlname Nom champ formulaire
* @return void
*/
public function select_type_comptes_financiers($selected = Account::TYPE_CURRENT, $htmlname = 'type')
public function selectTypeOfBankAccount($selected = Account::TYPE_CURRENT, $htmlname = 'type')
{
$account = new Account($this->db);