Works on best mutualized code
Works on MVC
This commit is contained in:
parent
9d46536909
commit
f5b786e115
@ -1396,6 +1396,7 @@ if ($_GET['action'] == 'create')
|
||||
$classname = 'Actions'.ucfirst($subelement);
|
||||
$objectsrc = new $classname($db);
|
||||
$objectsrc->fetch(GETPOST('originid'));
|
||||
if (empty($objectsrc->object->lines) && method_exists($objectsrc->object,'fetch_lines')) $objectsrc->object->fetch_lines();
|
||||
$objectsrc->object->fetch_thirdparty();
|
||||
|
||||
$projectid = (!empty($objectsrc->object->fk_project)?$object->fk_project:'');
|
||||
|
||||
@ -69,8 +69,6 @@ class ActionsCommonObject
|
||||
$num = count($this->object->lines);
|
||||
$var = true;
|
||||
$i = 0;
|
||||
|
||||
var_dump($this->object);
|
||||
|
||||
foreach ($this->object->lines as $line)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user