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 c4535672a5e234e4b15be8f3b493755aa30237a4 (commit)
from e0fcdb7bca7c3f2e174bfff09de52bcdbc4809d3 (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=c4535672a5e234e4b15be8f3b493755aa30237a4
commit c4535672a5e234e4b15be8f3b493755aa30237a4
Author: Franck Villaume <[email protected]>
Date: Tue Mar 21 08:12:55 2017 +0100
remove useless code
diff --git a/src/common/tracker/actions/widget_artifact_display.php
b/src/common/tracker/actions/widget_artifact_display.php
index 2bfa8f7..24871db 100644
--- a/src/common/tracker/actions/widget_artifact_display.php
+++ b/src/common/tracker/actions/widget_artifact_display.php
@@ -35,18 +35,6 @@ if (!isset($func)) {
$func = getStringFromRequest('func');
}
-$lm = new WidgetLayoutManager();
-$sql = "SELECT l.* FROM layouts AS l INNER JOIN owner_layouts AS o ON(l.id =
o.layout_id)
- WHERE o.owner_type = $1
- AND o.owner_id = $2
- AND o.is_default = 1";
-$res = db_query_params($sql,array('t', $atid));
-if($res && db_numrows($res) < 1) {
- $lm->createDefaultLayoutForTracker($atid);
- $res = db_query_params($sql,array('t', $atid));
-}
-$id = db_result($res, 0 , 'id');
-
html_use_jqueryui();
html_use_jquerydatetimepicker();
use_javascript('/widgets/scripts/WidgetController.js');
@@ -66,5 +54,6 @@ if ($func == 'add') {
echo html_e('input', array('type' => 'hidden', 'name' => 'artifact_id',
'value' => $ah->getID(), 'form' => 'trackerform'));
}
echo $HTML->closeForm();
+$lm = new WidgetLayoutManager();
$lm->displayLayout($atid, WidgetLayoutManager::OWNER_TYPE_TRACKER);
$ath->footer();
-----------------------------------------------------------------------
Summary of changes:
src/common/tracker/actions/widget_artifact_display.php | 13 +------------
1 file changed, 1 insertion(+), 12 deletions(-)
hooks/post-receive
--
FusionForge
_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits