projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cannot insert a supplier transaction record in Direct Supplier Invoice (certain MySql...
[fa-stable.git]
/
includes
/
hooks.inc
diff --git
a/includes/hooks.inc
b/includes/hooks.inc
index fedbc4c22cf8d4b59eefd209c1d2ffe605aff432..515bcccf3c9f72a22f4bbf79439a3d1a4973c2b8 100644
(file)
--- a/
includes/hooks.inc
+++ b/
includes/hooks.inc
@@
-261,8
+261,8
@@
function hook_invoke_all($method, &$data, $opts=null)
} else if (isset($result)) {
$return[] = $result;
}
} else if (isset($result)) {
$return[] = $result;
}
+ set_ext_domain();
}
}
- set_ext_domain();
return $return;
}
/*
return $return;
}
/*
@@
-278,11
+278,11
@@
function hook_invoke_first($method, &$data, $opts=null)
if (method_exists($hook, $method)) {
set_ext_domain('modules/'.$ext);
$result = $hook->$method($data, $opts);
if (method_exists($hook, $method)) {
set_ext_domain('modules/'.$ext);
$result = $hook->$method($data, $opts);
+ set_ext_domain();
if (isset($result))
break;
}
}
if (isset($result))
break;
}
}
- set_ext_domain();
return $result;
}
/*
return $result;
}
/*
@@
-300,11
+300,11
@@
function hook_invoke_last($method, &$data, $opts=null)
if (method_exists($hook, $method)) {
set_ext_domain('modules/'.$ext);
$result = $hook->$method($data, $opts);
if (method_exists($hook, $method)) {
set_ext_domain('modules/'.$ext);
$result = $hook->$method($data, $opts);
+ set_ext_domain();
if (isset($result))
break;
}
}
if (isset($result))
break;
}
}
- set_ext_domain();
return $result;
}
//------------------------------------------------------------------------------------------
return $result;
}
//------------------------------------------------------------------------------------------