Skip to content
Snippets Groups Projects
Commit cbd102fa authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Merge and rename method into camel format

parent 6e8b176d
No related branches found
No related tags found
No related merge requests found
......@@ -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.
......
......@@ -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
......
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment