Fix: Restore note tab as using notes inside the main card is not possible for a lot of users since content of note is too large. Also this tab will receive/show more features in future version (for example, notes specific for each users and history of notes. So i added instead an option to hide tabs for people who don't whant it..

This commit is contained in:
Laurent Destailleur 2012-03-12 11:33:25 +01:00
parent e033f202d1
commit c040abe574

View File

@ -74,12 +74,13 @@ function propal_prepare_head($object)
// $this->tabs = array('entity:-tabname:Title:@mymodule:/mymodule/mypage.php?id=__ID__'); to remove a tab
complete_head_from_modules($conf,$langs,$object,$head,$h,'propal');
/*
$head[$h][0] = DOL_URL_ROOT.'/comm/propal/note.php?id='.$object->id;
$head[$h][1] = $langs->trans('Notes');
$head[$h][2] = 'note';
$h++;
*/
if (empty($conf->global->MAIN_DISABLE_NOTES_TAB))
{
$head[$h][0] = DOL_URL_ROOT.'/comm/propal/note.php?id='.$object->id;
$head[$h][1] = $langs->trans('Notes');
$head[$h][2] = 'note';
$h++;
}
$head[$h][0] = DOL_URL_ROOT.'/comm/propal/document.php?id='.$object->id;
/*$filesdir = $conf->propale->dir_output . "/" . dol_sanitizeFileName($propal->ref);