From de4419f74a0d14a60f6f22e39679bab18f46d751 Mon Sep 17 00:00:00 2001
From: Laurent Destailleur <eldy@users.sourceforge.net>
Date: Tue, 8 Jun 2010 08:03:03 +0000
Subject: [PATCH] Use option MAIN_USE_NOTES_IN_DETAILS instead of milestone
 module

---
 htdocs/core/class/html.form.class.php | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php
index 26e7724d78b..891302c3eb4 100644
--- a/htdocs/core/class/html.form.class.php
+++ b/htdocs/core/class/html.form.class.php
@@ -479,9 +479,12 @@ class Form
 			if (1 == $selected) print ' selected="true"';
 			print '>'.$langs->trans("Service");
 
-			print '<option value="9"';
-			if (9 == $selected) print ' selected="true"';
-			print '>'.$langs->trans("Notes");
+			if ($conf->global->MAIN_USE_NOTES_IN_DETAILS)
+			{
+				print '<option value="9"';
+				if (9 == $selected) print ' selected="true"';
+				print '>'.$langs->trans("Notes");
+			}
 
 			print '</select>';
 			//if ($user->admin) print info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionnarySetup"),1);
-- 
GitLab