Merge pull request #12106 from frederic34/patch-13
avoid ErrorBadValueForParamNotAString if not configured
This commit is contained in:
commit
1f672221ec
@ -454,7 +454,7 @@ foreach ($accounts as $key=>$type)
|
|||||||
if (! empty($arrayfields['b.account_number']['checked']))
|
if (! empty($arrayfields['b.account_number']['checked']))
|
||||||
{
|
{
|
||||||
print '<td>';
|
print '<td>';
|
||||||
if (! empty($conf->accounting->enabled))
|
if (! empty($conf->accounting->enabled) && ! empty($objecttmp->account_number))
|
||||||
{
|
{
|
||||||
$accountingaccount = new AccountingAccount($db);
|
$accountingaccount = new AccountingAccount($db);
|
||||||
$accountingaccount->fetch('', $objecttmp->account_number, 1);
|
$accountingaccount->fetch('', $objecttmp->account_number, 1);
|
||||||
@ -472,7 +472,7 @@ foreach ($accounts as $key=>$type)
|
|||||||
if (! empty($arrayfields['b.fk_accountancy_journal']['checked']))
|
if (! empty($arrayfields['b.fk_accountancy_journal']['checked']))
|
||||||
{
|
{
|
||||||
print '<td>';
|
print '<td>';
|
||||||
if (! empty($conf->accounting->enabled))
|
if (! empty($conf->accounting->enabled) && ! empty($objecttmp->fk_accountancy_journal))
|
||||||
{
|
{
|
||||||
$accountingjournal = new AccountingJournal($db);
|
$accountingjournal = new AccountingJournal($db);
|
||||||
$accountingjournal->fetch($objecttmp->fk_accountancy_journal);
|
$accountingjournal->fetch($objecttmp->fk_accountancy_journal);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user