Works on best mutualized code

Works on MVC
This commit is contained in:
Regis Houssin 2010-12-14 15:44:26 +00:00
parent 9d46536909
commit f5b786e115
2 changed files with 1 additions and 2 deletions

View File

@ -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:'');

View File

@ -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)
{