Fix: broken features

This commit is contained in:
Regis Houssin 2013-01-15 11:41:12 +01:00
parent 8a6bc63127
commit 92723bd6fe

View File

@ -70,7 +70,6 @@ if (! empty($canvas))
require_once DOL_DOCUMENT_ROOT.'/core/class/canvas.class.php';
$objcanvas = new Canvas($db,$action);
$objcanvas->getCanvas('product','card',$canvas);
$objcanvas->assign_values($action, $object->id, $ref); // Set value for templates
}
// Security check
@ -656,7 +655,8 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action))
// -----------------------------------------
// When used with CANVAS (more simple)
// -----------------------------------------
$objcanvas->display_canvas($action); // Show template
$objcanvas->assign_values($action, $object->id, $object->ref); // Set value for templates
$objcanvas->display_canvas($action); // Show template
}
else
{