2
0
forked from Wavyzz/dolibarr

Modif chargement des valeurs

This commit is contained in:
Rodolphe Quiedeville
2007-05-16 06:43:01 +00:00
parent c3b51e5b4a
commit ccac08b8a3

View File

@@ -380,8 +380,15 @@ class ProductLivre extends Product
* \brief Assigne les valeurs pour les templates Smarty
* \param smarty Instance de smarty
*/
function assign_smarty_values(&$smarty)
function assign_smarty_values(&$smarty, $action='')
{
if ($action =='edit' or $action == 'create')
{
$this->GetAvailableFormat();
$this->GetAvailableAuteurs();
}
if ($this->errno == 257)
{
$smarty->assign('class_normal_ref', 'error');
@@ -451,7 +458,7 @@ class ProductLivre extends Product
$smarty->assign('prod_statuts_id', array(1,0) );
$smarty->assign('prod_statuts_value', array('En vente', 'Hors vente') );
$this->GetAvailableFormat();
$smarty->assign('livre_available_formats', $this->available_formats);
$smarty->assign('livre_available_auteurs', $this->available_auteurs);