[Fusionforge-commits] FusionForge branch master updated. 843ca6d6ca0850218baf38ebd7fbcae349033772

Franck VILLAUME nerville at fusionforge.org
Fri Feb 7 14:29:27 CET 2014


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  843ca6d6ca0850218baf38ebd7fbcae349033772 (commit)
      from  78b724e16b21b0ddb7361be477f77b747ae95e82 (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 -----------------------------------------------------------------
commit 843ca6d6ca0850218baf38ebd7fbcae349033772
Author: Franck Villaume <franck.villaume at trivialdev.com>
Date:   Fri Feb 7 14:26:12 2014 +0100

    tracker: enable delete attachment files and close [#481]

diff --git a/src/common/tracker/actions/mod-limited.php b/src/common/tracker/actions/mod-limited.php
index 7bf9464..3876442 100644
--- a/src/common/tracker/actions/mod-limited.php
+++ b/src/common/tracker/actions/mod-limited.php
@@ -153,7 +153,6 @@ if (session_loggedin()) {
 	<?php } ?>
 	<?php
 		$ath->renderRelatedTasks($group, $ah);
-		$ath->renderFiles($group_id, $ah);
 	?>
 	<tr>
 		<td colspan="2"><strong><?php echo _('Summary')._(':'); ?><?php echo utils_requiredField(); ?></strong><br />
diff --git a/src/common/tracker/actions/mod.php b/src/common/tracker/actions/mod.php
index 572b05c..f5e426e 100644
--- a/src/common/tracker/actions/mod.php
+++ b/src/common/tracker/actions/mod.php
@@ -189,7 +189,6 @@ echo html_build_select_box ($res,'new_artifact_type_id',$ath->getID(),false);
 	<?php } ?>
 	<?php
 		$ath->renderRelatedTasks($group, $ah);
-		$ath->renderFiles($group_id, $ah);
 	?>
 	<tr>
 		<td colspan="2"><strong><?php echo _('Summary')._(':'); ?><?php echo utils_requiredField(); ?></strong><br />
diff --git a/src/common/tracker/include/ArtifactTypeHtml.class.php b/src/common/tracker/include/ArtifactTypeHtml.class.php
index e237e1b..c5bd9ee 100644
--- a/src/common/tracker/include/ArtifactTypeHtml.class.php
+++ b/src/common/tracker/include/ArtifactTypeHtml.class.php
@@ -388,7 +388,9 @@ class ArtifactTypeHtml extends ArtifactType {
 				echo '<td>'.date(_('Y-m-d H:i'), $file->getDate()).'</td>';
 				echo '<td>'.$file->getSubmittedUnixName().'</td>';
 				echo '<td><a href="/tracker/download.php/'.$group_id.'/'. $this->getID().'/'. $ah->getID() .'/'.$file->getID().'/'.$file->getName() .'">'. htmlspecialchars($file->getName()) .'</a></td>';
-//				<td><input type="checkbox" name="delete_file[]" value="'. $file->getID() .'">'._("Delete").' </td>
+				if (forge_check_perm ('tracker', $this->getID(), 'tech')) {
+					echo '<td><input type="checkbox" name="delete_file[]" value="'. $file->getID() .'">'._('Delete').'</td>';
+				}
 				echo '</tr>';
 			}
 

-----------------------------------------------------------------------

Summary of changes:
 src/common/tracker/actions/mod-limited.php            |    1 -
 src/common/tracker/actions/mod.php                    |    1 -
 src/common/tracker/include/ArtifactTypeHtml.class.php |    4 +++-
 3 files changed, 3 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list