| '.$langs->trans('NotePublic').' | ';
print '';
- $note_public = $object->getDefaultCreateValueFor('note_public');
- if (empty($note_public))$note_public = $objectsrc->note_public;
$doleditor = new DolEditor('note_public', (GETPOSTISSET('note_public') ?GETPOST('note_public', 'none') : $note_public), '', 80, 'dolibarr_notes', 'In', 0, false, true, ROWS_3, '90%');
print $doleditor->Create(1);
print ' | ';
@@ -2059,9 +2060,6 @@ if ($action == 'create')
// Private note
print '
| '.$langs->trans('NotePrivate').' | ';
print '';
- $note_private = $object->getDefaultCreateValueFor('note_private');
- if (empty($note_private))$note_private = $objectsrc->note_private;
-
$doleditor = new DolEditor('note_private', (GETPOSTISSET('note_private') ?GETPOST('note_private', 'none') : $note_private), '', 80, 'dolibarr_notes', 'In', 0, false, true, ROWS_3, '90%');
print $doleditor->Create(1);
print ' | ';
diff --git a/htdocs/product/stock/list.php b/htdocs/product/stock/list.php
index 3151df07507..15ee5c2e52b 100644
--- a/htdocs/product/stock/list.php
+++ b/htdocs/product/stock/list.php
@@ -654,8 +654,8 @@ if (in_array('builddoc', $arrayofmassactions) && ($nbtotalofrecords === '' || $n
$urlsource .= str_replace('&', '&', $param);
$filedir = $diroutputmassaction;
- $genallowed = $user->rights->mymodule->read;
- $delallowed = $user->rights->mymodule->create;
+ $genallowed = $user->rights->stock->lire;
+ $delallowed = $user->rights->stock->creer;
print $formfile->showdocuments('massfilesarea_mymodule', '', $filedir, $urlsource, 0, $delallowed, '', 1, 1, 0, 48, 1, $param, $title, '', '', '', null, $hidegeneratedfilelistifempty);
}