Fix: Description was lost on modify

This commit is contained in:
Laurent Destailleur 2009-04-21 19:53:51 +00:00
parent aee65abaee
commit c8bb9379ee

View File

@ -844,7 +844,7 @@ else
} }
else else
{ {
print '<textarea name="eldesc" class="flat" cols="70" rows="'.ROWS_2.'">'.dol_htmlentitiesbr_decode($fac->lignes[$i]->description).'</textarea>'; print '<textarea name="label" class="flat" cols="70" rows="'.ROWS_2.'">'.dol_htmlentitiesbr_decode($fac->lignes[$i]->description).'</textarea>';
} }
print '</td>'; print '</td>';
@ -965,7 +965,8 @@ else
print '<td>'; print '<td>';
print $html->select_type_of_lines(-1,'type',1); print $html->select_type_of_lines(-1,'type',1);
if ($conf->produit->enabled && $conf->service->enabled) print '<br>'; if (($conf->produit->enabled && $conf->service->enabled)
|| (empty($conf->produit->enabled) && empty($conf->service->enabled))) print '<br>';
// Editor wysiwyg // Editor wysiwyg
if ($conf->fckeditor->enabled && $conf->global->FCKEDITOR_ENABLE_DETAILS) if ($conf->fckeditor->enabled && $conf->global->FCKEDITOR_ENABLE_DETAILS)