forked from Wavyzz/dolibarr
Merge pull request #1069 from FHenry/develop
Fix bug for PGSQL Migration 3.4->3.5
This commit is contained in:
@@ -315,7 +315,7 @@ else if ($action == 'add' && $user->rights->commande->creer)
|
||||
}
|
||||
|
||||
//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);
|
||||
$array_option=$lines[$i]->array_options;
|
||||
|
||||
@@ -1008,12 +1008,12 @@ else if ($action == 'add' && $user->rights->facture->creer)
|
||||
$fk_parent_line = 0;
|
||||
}
|
||||
|
||||
//Extrafields
|
||||
if (empty($conf->global->MAIN_EXTRAFIELDS_DISABLED)) // For avoid conflicts if trigger used
|
||||
{
|
||||
$lines[$i]->fetch_optionals($lines[$i]->rowid);
|
||||
$array_option=$lines[$i]->array_options;
|
||||
}
|
||||
//Extrafields
|
||||
if (empty($conf->global->MAIN_EXTRAFIELDS_DISABLED) && method_exists($lines[$i],'fetch_optionals'))
|
||||
{
|
||||
$lines[$i]->fetch_optionals($lines[$i]->rowid);
|
||||
$array_option=$lines[$i]->array_options;
|
||||
}
|
||||
|
||||
$result = $object->addline(
|
||||
$id,
|
||||
|
||||
@@ -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_label;
|
||||
|
||||
ALTER TABLE `llx_user` ADD `accountancy_code` VARCHAR( 24 ) NULL;
|
||||
ALTER TABLE llx_user ADD accountancy_code VARCHAR( 24 ) NULL;
|
||||
|
||||
Reference in New Issue
Block a user