Works on product canvas and templates
This commit is contained in:
parent
5916b3835b
commit
8b6a1c3470
@ -83,6 +83,15 @@ class Canvas
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief Assign values
|
||||||
|
*/
|
||||||
|
function fetch($id,$action='')
|
||||||
|
{
|
||||||
|
$ret = $this->object->fetch($id,$action);
|
||||||
|
return $ret;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Assign values
|
* \brief Assign values
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -666,6 +666,7 @@ if ($_GET["id"] || $_GET["ref"])
|
|||||||
$canvas = new Canvas($db,$user);
|
$canvas = new Canvas($db,$user);
|
||||||
|
|
||||||
$product = $canvas->load_canvas('product',$productstatic->canvas);
|
$product = $canvas->load_canvas('product',$productstatic->canvas);
|
||||||
|
$canvas->fetch($productstatic->id,$_GET["action"]);
|
||||||
}
|
}
|
||||||
|
|
||||||
llxHeader('',$langs->trans("CardProduct".$product->type));
|
llxHeader('',$langs->trans("CardProduct".$product->type));
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user