[Fusionforge-commits] FusionForge branch master updated. 6.0.4-1208-g6ce0f31

Franck Villaume nerville at libremir.placard.fr.eu.org
Sat Dec 3 13:06:56 CET 2016


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  6ce0f31ea2d4c07447ce21172dbd6a86a0b57ac0 (commit)
      from  c214b6ed345eb1f2e9537bf781f4a020fea63e2b (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=6ce0f31ea2d4c07447ce21172dbd6a86a0b57ac0

commit 6ce0f31ea2d4c07447ce21172dbd6a86a0b57ac0
Author: Franck Villaume <franck.villaume at trivialdev.com>
Date:   Sat Dec 3 13:06:20 2016 +0100

    docman fix delete version action

diff --git a/src/common/docman/DocumentVersionFactory.class.php b/src/common/docman/DocumentVersionFactory.class.php
index 81fb490..92bafec 100644
--- a/src/common/docman/DocumentVersionFactory.class.php
+++ b/src/common/docman/DocumentVersionFactory.class.php
@@ -88,7 +88,7 @@ class DocumentVersionFactory extends FFError {
 				}
 				$arr['versionactions'][] = util_make_link('#', $HTML->getEditFilePic(_('Edit this version'), 'editversion'), array('id' => 'version_action_edit', 'onclick' => 'javascript:controllerListFile.toggleEditVersionView({title: \''.addslashes($arr['title']).'\', description: '.json_encode($arr['description']).', version: '.ltrim($arr['version'], '_').', current_version: '.$arr['current_version'].', isURL: '.$isURL.', isText: '.$isText.', isHtml: '.$isHtml.', filename: \''.addslashes($arr['filename']).'\', vcomment: \''.addslashes($arr['vcomment']).'\'})'), true);
 				if ($numrows > 1) {
-					$arr['versionactions'][] = util_make_link('#', $HTML->getRemovePic(_('Permanently delete this version'), 'delversion'), array('id' => 'version_action_delete', 'onclick' => 'javascript:controllerListFile.deleteVersion({version: '.$arr['version'].'})'), true);
+					$arr['versionactions'][] = util_make_link('#', $HTML->getRemovePic(_('Permanently delete this version'), 'delversion'), array('id' => 'version_action_delete', 'onclick' => 'javascript:controllerListFile.deleteVersion({version: '.ltrim($arr['version'], '_').'})'), true);
 				}
 				$versions[$arr['version']] = $arr;
 			}

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

Summary of changes:
 src/common/docman/DocumentVersionFactory.class.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list