Fix bug : new document w/o description

Change  print_r by var_export
Improve PHPUNIT
This commit is contained in:
sparkyx 2023-01-08 20:22:37 +01:00
parent 4b0ee7b0e1
commit b3674eaa7b
6 changed files with 18 additions and 9 deletions

View file

@ -308,8 +308,15 @@ function small(p_id_textarea){
echo '<div class="textarea" style="margin-left:5%;margin-right:5%;margin-bottom:1rem;width:90%;">';
echo $description->input();
echo '</div>';
} else {
// no description and no comment
} elseif ( $p_view != 'READ' ) {
// no description and no comment it is a new document
echo h2(_("Description"));
$description->set_enrichText('enrich');
$description->style='style="height:250px;width:90%;"';
echo '<div class="textarea" style="margin-left:5%;margin-right:5%;margin-bottom:1rem;width:90%;">';
echo $description->input();
echo '</div>';
}