浏览代码

Merge pull request #10459 from atm-gauthier/7.0_FIX_cmd_fourn_enabled

FIX : $conf->fournisseur->commande->enabled doesn't exist, we must use $conf->fournisseur->enabled
Laurent Destailleur 6 年之前
父节点
当前提交
104364ed02
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      htdocs/core/triggers/interface_20_modWorkflow_WorkflowManager.class.php

+ 1 - 1
htdocs/core/triggers/interface_20_modWorkflow_WorkflowManager.class.php

@@ -175,7 +175,7 @@ class InterfaceWorkflowManager extends DolibarrTriggers
         	dol_syslog( "Trigger '".$this->name."' for action '$action' launched by ".__FILE__.". id=".$object->id );
         	dol_syslog( "Trigger '".$this->name."' for action '$action' launched by ".__FILE__.". id=".$object->id );
 
 
         	// First classify billed the order to allow the proposal classify process
         	// First classify billed the order to allow the proposal classify process
-        	if (! empty($conf->fournisseur->commande->enabled) && ! empty($conf->global->WORKFLOW_INVOICE_AMOUNT_CLASSIFY_BILLED_SUPPLIER_ORDER))
+        	if (! empty($conf->fournisseur->enabled) && ! empty($conf->global->WORKFLOW_INVOICE_AMOUNT_CLASSIFY_BILLED_SUPPLIER_ORDER))
         	{
         	{
         		$object->fetchObjectLinked('','order_supplier',$object->id,$object->element);
         		$object->fetchObjectLinked('','order_supplier',$object->id,$object->element);
         		if (! empty($object->linkedObjects))
         		if (! empty($object->linkedObjects))