This commit is contained in:
Laurent Destailleur 2023-09-29 00:19:32 +02:00
parent fa34a91873
commit f2bfdb318e

View file

@ -489,9 +489,10 @@ if (empty($reshook)) {
if ($origin && $originid) {
// Parse element/subelement (ex: project_task)
$element = $subelement = $origin;
$regs = array();
if (preg_match('/^([^_]+)_([^_]+)/i', $origin, $regs)) {
$element = $regs [1];
$subelement = $regs [2];
$element = $regs[1];
$subelement = $regs[2];
}
// For compatibility