Skip to content

Commit

Permalink
Fix trigger call ficher inter create
Browse files Browse the repository at this point in the history
  • Loading branch information
FHenry committed May 6, 2013
1 parent 8bd7c6a commit 0bb9ee1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion htdocs/fichinter/class/fichinter.class.php
Expand Up @@ -167,7 +167,9 @@ function create()
// Appel des triggers
include_once DOL_DOCUMENT_ROOT . '/core/class/interfaces.class.php';
$interface=new Interfaces($this->db);
$result=$interface->run_triggers('FICHINTER_CREATE',$this,$user,$langs,$conf);
$tmpuser=new User($this->db);
$tmpuser->fetch($this->author);
$result=$interface->run_triggers('FICHINTER_CREATE',$this,$tmpuser,$langs,$conf);
if ($result < 0) {
$error++; $this->errors=$interface->errors;
}
Expand Down

0 comments on commit 0bb9ee1

Please sign in to comment.