[Fusionforge-commits] FusionForge branch Branch_5_3 updated. bd831c4347a90c9c5c4120e29fdcee5fb6cdd05f

Franck VILLAUME nerville at fusionforge.org
Fri Feb 7 14:26:54 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, Branch_5_3 has been updated
       via  bd831c4347a90c9c5c4120e29fdcee5fb6cdd05f (commit)
      from  b60d3afe172c34928300c864cf6f30d143225884 (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 bd831c4347a90c9c5c4120e29fdcee5fb6cdd05f
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 a20b47b..76b45df 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 8fc51c0..60ad604 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 1df2337..d65396e 100644
--- a/src/common/tracker/include/ArtifactTypeHtml.class.php
+++ b/src/common/tracker/include/ArtifactTypeHtml.class.php
@@ -384,7 +384,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