Skip to content

Commit

Permalink
missing hookmanager like others doc_generic*odt modules
Browse files Browse the repository at this point in the history
  • Loading branch information
rycks committed Jan 22, 2025
1 parent 278b070 commit cbe15c7
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,14 @@ public function write_file($object, $outputlangs, $srctemplatepath)
return -1;
}

// Add odtgeneration hook
if (!is_object($hookmanager)) {
include_once DOL_DOCUMENT_ROOT.'/core/class/hookmanager.class.php';
$hookmanager = new HookManager($this->db);
}
$hookmanager->initHooks(array('odtgeneration'));
global $action;

if (!is_object($outputlangs)) {
$outputlangs = $langs;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ public function write_file($object, $outputlangs, $srctemplatepath, $hidedetails
$hookmanager = new HookManager($this->db);
}
$hookmanager->initHooks(array('odtgeneration'));
global $action;

if (!is_object($outputlangs)) {
$outputlangs = $langs;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,12 @@ public function write_file($object, $outputlangs, $srctemplatepath, $hidedetails
}

// Add odtgeneration hook
if (!is_object($hookmanager)) {
include_once DOL_DOCUMENT_ROOT.'/core/class/hookmanager.class.php';
$hookmanager = new HookManager($this->db);
}
$hookmanager->initHooks(array('odtgeneration'));
global $action;

if (!is_object($outputlangs)) {
$outputlangs = $langs;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,12 @@ public function write_file($object, $outputlangs, $srctemplatepath, $hidedetails
}

// Add odtgeneration hook
if (!is_object($hookmanager)) {
include_once DOL_DOCUMENT_ROOT.'/core/class/hookmanager.class.php';
$hookmanager = new HookManager($this->db);
}
$hookmanager->initHooks(array('odtgeneration'));
global $action;

if (!is_object($outputlangs)) {
$outputlangs = $langs;
Expand Down

0 comments on commit cbe15c7

Please sign in to comment.