diff --git a/htdocs/eventorganization/conferenceorbooth_list.php b/htdocs/eventorganization/conferenceorbooth_list.php
index 46bb260a6be..020aecc753f 100644
--- a/htdocs/eventorganization/conferenceorbooth_list.php
+++ b/htdocs/eventorganization/conferenceorbooth_list.php
@@ -385,17 +385,6 @@ if ($projectid > 0) {
print '';
}
- // Visibility
- print '
| '.$langs->trans("Visibility").' | ';
- if ($project->public == 0) {
- print img_picto($langs->trans('PrivateProject'), 'private', 'class="paddingrightonly"');
- print $langs->trans("PrivateProject");
- } else {
- print img_picto($langs->trans('SharedProject'), 'world', 'class="paddingrightonly"');
- print $langs->trans("SharedProject");
- }
- print ' |
';
-
// Budget
print '| '.$langs->trans("Visibility").' | ';
+ if ($project->public == 0) {
+ print img_picto($langs->trans('PrivateProject'), 'private', 'class="paddingrightonly"');
+ print $langs->trans("PrivateProject");
+ } else {
+ print img_picto($langs->trans('SharedProject'), 'world', 'class="paddingrightonly"');
+ print $langs->trans("SharedProject");
+ }
+ print ' |
';
+
// Other attributes
$cols = 2;
$objectconf = $object;
@@ -447,11 +447,6 @@ if ($projectid > 0) {
print '';
- // Description
- print '| '.$langs->trans("Description").' | ';
- print dol_htmlentitiesbr($project->description);
- print ' |
';
-
// Categories
if (isModEnabled('category')) {
print '| '.$langs->trans("Categories").' | ';
@@ -459,6 +454,16 @@ if ($projectid > 0) {
print " |
";
}
+ // Description
+ print '| '.$langs->trans("Description").' |
';
+ if ($project->description) {
+ print '| ';
+ print ' ';
+ print dolPrintHTML($project->description);
+ print ' ';
+ print ' |
';
+ }
+
print '| ';
$typeofdata = 'checkbox:'.($project->accept_conference_suggestions ? ' checked="checked"' : '');
$htmltext = $langs->trans("AllowUnknownPeopleSuggestConfHelp");
diff --git a/htdocs/eventorganization/conferenceorboothattendee_list.php b/htdocs/eventorganization/conferenceorboothattendee_list.php
index c5934e13ecd..98ea7f6adf9 100644
--- a/htdocs/eventorganization/conferenceorboothattendee_list.php
+++ b/htdocs/eventorganization/conferenceorboothattendee_list.php
@@ -484,17 +484,6 @@ if ($projectstatic->id > 0 || $confOrBooth > 0) {
print ' |
';
}
- // Visibility
- print '| '.$langs->trans("Visibility").' | ';
- if ($projectstatic->public == 0) {
- print img_picto($langs->trans('PrivateProject'), 'private', 'class="paddingrightonly"');
- print $langs->trans("PrivateProject");
- } else {
- print img_picto($langs->trans('SharedProject'), 'world', 'class="paddingrightonly"');
- print $langs->trans("SharedProject");
- }
- print ' |
';
-
// Budget
print '| '.$langs->trans("Budget").' | ';
if (strcmp($projectstatic->budget_amount, '')) {
@@ -526,6 +515,17 @@ if ($projectstatic->id > 0 || $confOrBooth > 0) {
}
print ' |
';
+ // Visibility
+ print '| '.$langs->trans("Visibility").' | ';
+ if ($projectstatic->public == 0) {
+ print img_picto($langs->trans('PrivateProject'), 'private', 'class="paddingrightonly"');
+ print $langs->trans("PrivateProject");
+ } else {
+ print img_picto($langs->trans('SharedProject'), 'world', 'class="paddingrightonly"');
+ print $langs->trans("SharedProject");
+ }
+ print ' |
';
+
// Location event
print '| '.$langs->trans("Location").' | ';
print $projectstatic->location;
@@ -547,11 +547,6 @@ if ($projectstatic->id > 0 || $confOrBooth > 0) {
print '';
- // Description
- print '| '.$langs->trans("Description").' | ';
- print dol_htmlentitiesbr($projectstatic->description);
- print ' | ';
-
// Categories
if (isModEnabled('category')) {
print '| '.$langs->trans("Categories").' | ';
@@ -559,6 +554,16 @@ if ($projectstatic->id > 0 || $confOrBooth > 0) {
print " | ";
}
+ // Description
+ print '| '.$langs->trans("Description").' | ';
+ if ($projectstatic->description) {
+ print '| ';
+ print ' ';
+ print dolPrintHTML($projectstatic->description);
+ print ' ';
+ print ' | ';
+ }
+
print '| ';
$typeofdata = 'checkbox:'.($projectstatic->accept_conference_suggestions ? ' checked="checked"' : '');
$htmltext = $langs->trans("AllowUnknownPeopleSuggestConfHelp");
diff --git a/htdocs/projet/element.php b/htdocs/projet/element.php
index 80af93b7cd0..f416f4fc55d 100644
--- a/htdocs/projet/element.php
+++ b/htdocs/projet/element.php
@@ -311,7 +311,7 @@ if (getDolGlobalString('PROJECT_USE_OPPORTUNITIES') || !getDolGlobalString('PROJ
print ' | ';
}
-if (getDolGlobalString('PROJECT_USE_OPPORTUNITIES')) {
+if (getDolGlobalString('PROJECT_USE_OPPORTUNITIES') && !empty($object->usage_opportunity)) {
// Opportunity status
print '| '.$langs->trans("OpportunityStatus").' | ';
$code = dol_getIdFromCode($db, $object->opp_status, 'c_lead_status', 'rowid', 'code');
| |