Skip to content
Snippets Groups Projects
Commit f5b786e1 authored by Regis Houssin's avatar Regis Houssin
Browse files

Works on best mutualized code

Works on MVC
parent 9d465369
No related branches found
No related tags found
No related merge requests found
......@@ -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)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment