浏览代码

FIX #16304

Laurent Destailleur 4 年之前
父节点
当前提交
3ff80ac1f8
共有 2 个文件被更改,包括 4 次插入0 次删除
  1. 2 0
      htdocs/compta/paiement/card.php
  2. 2 0
      htdocs/fourn/paiement/card.php

+ 2 - 0
htdocs/compta/paiement/card.php

@@ -44,6 +44,8 @@ $confirm = GETPOST('confirm', 'alpha');
 $backtopage = GETPOST('backtopage', 'alpha');
 
 $object = new Paiement($db);
+// Initialize technical object to manage hooks of page. Note that conf->hooks_modules contains array of hook context
+$hookmanager->initHooks(array('paymentcard', 'globalcard'));
 
 // Load object
 include DOL_DOCUMENT_ROOT.'/core/actions_fetchobject.inc.php'; // Must be include, not include_once.

+ 2 - 0
htdocs/fourn/paiement/card.php

@@ -39,6 +39,8 @@ $action		= GETPOST('action', 'alpha');
 $confirm	= GETPOST('confirm', 'alpha');
 
 $object = new PaiementFourn($db);
+// Initialize technical object to manage hooks of page. Note that conf->hooks_modules contains array of hook context
+$hookmanager->initHooks(array('supplierpaymentcard', 'globalcard'));
 
 // Load object
 include DOL_DOCUMENT_ROOT.'/core/actions_fetchobject.inc.php'; // Must be include, not include_once.