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