This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".
The branch, master has been updated
via 2d103953172facfbd261260f18de83e999217723 (commit)
from 60192134b6dd7b577fef7799d599da40208bf021 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://scm.fusionforge.org/anonscm/gitweb/?p=fusionforge/fusionforge.git;a=commitdiff;h=2d103953172facfbd261260f18de83e999217723
commit 2d103953172facfbd261260f18de83e999217723
Author: Franck Villaume <[email protected]>
Date: Thu Sep 21 16:26:01 2017 +0000
fix relation tab in tracker widget view
diff --git a/src/common/tracker/include/ArtifactHtml.class.php
b/src/common/tracker/include/ArtifactHtml.class.php
index fd25234..b397fc3 100644
--- a/src/common/tracker/include/ArtifactHtml.class.php
+++ b/src/common/tracker/include/ArtifactHtml.class.php
@@ -206,6 +206,7 @@ function hide_edit_button(id) {
}
function showRelations() {
+ global $HTML;
$result=$this->getRelations();
$rows= db_numrows($result);
$return = '';
@@ -236,6 +237,8 @@ function hide_edit_button(id) {
$return .= '</td>
</tr>
</table>';
+ } else {
+ $return .= $HTML->information(_('No relations found.'));
}
return $return;
}
diff --git a/src/common/widget/Widget_TrackerComment.class.php
b/src/common/widget/Widget_TrackerComment.class.php
index 6a3b43d..3e93da5 100644
--- a/src/common/widget/Widget_TrackerComment.class.php
+++ b/src/common/widget/Widget_TrackerComment.class.php
@@ -90,11 +90,9 @@ class Widget_TrackerComment extends Widget {
$count = db_numrows($ah->getHistory());
$nbh = $count? ' ('.$count.')' : '';
$elementsLi[] = array('content' =>
util_make_link('#tabber-changes', _('Changes').$nbh, false, true));
- if ($ah->hasRelations()) {
- $count = db_numrows($ah->getRelations());
- $nbr = $count? ' ('.$count.')' : '';
- $elementsLi[] = array('content' =>
util_make_link('#tabber-relations', _('Relations').$nbr, false, true));
- }
+ $count = db_numrows($ah->getRelations());
+ $nbr = $count? ' ('.$count.')' : '';
+ $elementsLi[] = array('content' =>
util_make_link('#tabber-relations', _('Relations').$nbr, false, true));
if (forge_get_config('use_artefacts_dependencies')) {
$tabTitle = _('Dependencies');
$nbChildren = $ah->hasChildren() ?
$ah->hasChildren() : 0;
-----------------------------------------------------------------------
Summary of changes:
src/common/tracker/include/ArtifactHtml.class.php | 3 +++
src/common/widget/Widget_TrackerComment.class.php | 8 +++-----
2 files changed, 6 insertions(+), 5 deletions(-)
hooks/post-receive
--
FusionForge
_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits