Skip to content

Commit

Permalink
some fix for contract model
Browse files Browse the repository at this point in the history
  • Loading branch information
grandoc committed Aug 26, 2013
1 parent 2591fa9 commit 24e6042
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions htdocs/core/modules/contract/modules_contract.php
Expand Up @@ -154,10 +154,10 @@ function getVersion()
* @param int $hideref Hide ref
* @return int 0 if KO, 1 if OK
*/
function contract_create($db, $object, $modele, $outputlangs, $hidedetails=0, $hidedesc=0, $hideref=0)
function contract_pdf_create($db, $object, $modele, $outputlangs, $hidedetails=0, $hidedesc=0, $hideref=0)
{
global $conf,$langs,$user;
$langs->load("contract");
global $conf,$langs,$user,$hookmanager;
$langs->load("contracts");

$error=0;

Expand Down Expand Up @@ -223,6 +223,9 @@ function contract_create($db, $object, $modele, $outputlangs, $hidedetails=0, $h
// We delete old preview
require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';
dol_delete_preview($object);

// Success in building document. We build meta file.
dol_meta_create($object);

// Appel des triggers
include_once DOL_DOCUMENT_ROOT . '/core/class/interfaces.class.php';
Expand Down

0 comments on commit 24e6042

Please sign in to comment.