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);
|
$classname = 'Actions'.ucfirst($subelement);
|
||||||
$objectsrc = new $classname($db);
|
$objectsrc = new $classname($db);
|
||||||
$objectsrc->fetch(GETPOST('originid'));
|
$objectsrc->fetch(GETPOST('originid'));
|
||||||
|
if (empty($objectsrc->object->lines) && method_exists($objectsrc->object,'fetch_lines')) $objectsrc->object->fetch_lines();
|
||||||
$objectsrc->object->fetch_thirdparty();
|
$objectsrc->object->fetch_thirdparty();
|
||||||
|
|
||||||
$projectid = (!empty($objectsrc->object->fk_project)?$object->fk_project:'');
|
$projectid = (!empty($objectsrc->object->fk_project)?$object->fk_project:'');
|
||||||
|
|||||||
@ -70,8 +70,6 @@ class ActionsCommonObject
|
|||||||
$var = true;
|
$var = true;
|
||||||
$i = 0;
|
$i = 0;
|
||||||
|
|
||||||
var_dump($this->object);
|
|
||||||
|
|
||||||
foreach ($this->object->lines as $line)
|
foreach ($this->object->lines as $line)
|
||||||
{
|
{
|
||||||
$var=!$var;
|
$var=!$var;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user