Update card.php
This commit is contained in:
parent
0bc33ef3b3
commit
883d6bd63a
@ -1534,6 +1534,7 @@ if ($action == 'create') {
|
||||
if (!empty($origin) && !empty($originid)) {
|
||||
// Parse element/subelement (ex: project_task)
|
||||
$element = $subelement = $origin;
|
||||
$classname = ucfirst($subelement);
|
||||
$regs = array();
|
||||
if (preg_match('/^([^_]+)_([^_]+)/i', $origin, $regs)) {
|
||||
$element = $regs[1];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user