Removed PROPALE_ADDON_NOTE_PUBLIC_DEFAULT. Must use the generic feature

"default value feature"
This commit is contained in:
Laurent Destailleur
2025-11-09 18:26:51 +01:00
parent abef925331
commit ddb3ba4ece

View File

@@ -2562,7 +2562,7 @@ if ($action == 'create') {
print '<tr class="field_note_public">';
print '<td class="titlefieldcreate tdtop">' . $langs->trans('NotePublic') . '</td>';
print '<td class="valuefieldcreate">';
$note_public = $object->getDefaultCreateValueFor('note_public', (!empty($objectsrc) ? $objectsrc->note_public : getDolGlobalString('PROPALE_ADDON_NOTE_PUBLIC_DEFAULT', null)), 'restricthtml');
$note_public = $object->getDefaultCreateValueFor('note_public', (!empty($objectsrc) ? $objectsrc->note_public : null), 'restricthtml');
$doleditor = new DolEditor('note_public', $note_public, '', 80, 'dolibarr_notes', 'In', false, false, !getDolGlobalString('FCKEDITOR_ENABLE_NOTE_PUBLIC') ? 0 : 1, ROWS_3, '90%');
print $doleditor->Create(1);