Fix bug for PGSQL Migration 3.4->3.5
Fix bug on create invoice from contract
This commit is contained in:
parent
f02fa8a41d
commit
1580f92b11
@ -315,7 +315,7 @@ else if ($action == 'add' && $user->rights->commande->creer)
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Extrafields
|
//Extrafields
|
||||||
if (empty($conf->global->MAIN_EXTRAFIELDS_DISABLED)) // For avoid conflicts if trigger used
|
if (empty($conf->global->MAIN_EXTRAFIELDS_DISABLED) && method_exists($lines[$i],'fetch_optionals') ) // For avoid conflicts if trigger used
|
||||||
{
|
{
|
||||||
$lines[$i]->fetch_optionals($lines[$i]->rowid);
|
$lines[$i]->fetch_optionals($lines[$i]->rowid);
|
||||||
$array_option=$lines[$i]->array_options;
|
$array_option=$lines[$i]->array_options;
|
||||||
|
|||||||
@ -1009,7 +1009,7 @@ else if ($action == 'add' && $user->rights->facture->creer)
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Extrafields
|
//Extrafields
|
||||||
if (empty($conf->global->MAIN_EXTRAFIELDS_DISABLED)) // For avoid conflicts if trigger used
|
if (empty($conf->global->MAIN_EXTRAFIELDS_DISABLED) && method_exists($lines[$i],'fetch_optionals'))
|
||||||
{
|
{
|
||||||
$lines[$i]->fetch_optionals($lines[$i]->rowid);
|
$lines[$i]->fetch_optionals($lines[$i]->rowid);
|
||||||
$array_option=$lines[$i]->array_options;
|
$array_option=$lines[$i]->array_options;
|
||||||
|
|||||||
@ -66,4 +66,4 @@ ALTER TABLE llx_propaldet_extrafields ADD INDEX idx_propaldet_extrafields (fk_ob
|
|||||||
DROP table llx_adherent_options;
|
DROP table llx_adherent_options;
|
||||||
DROP table llx_adherent_options_label;
|
DROP table llx_adherent_options_label;
|
||||||
|
|
||||||
ALTER TABLE `llx_user` ADD `accountancy_code` VARCHAR( 24 ) NULL;
|
ALTER TABLE llx_user ADD accountancy_code VARCHAR( 24 ) NULL;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user