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  4ed9c1890ec7069267b7acf3be0f5e892a7f0ff9 (commit)
      from  0b63776c5c5b422c4bd3be47ce17c791cc6c8a92 (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=4ed9c1890ec7069267b7acf3be0f5e892a7f0ff9

commit 4ed9c1890ec7069267b7acf3be0f5e892a7f0ff9
Author: Franck Villaume <[email protected]>
Date:   Mon Jul 18 13:34:17 2016 +0200

    docman: fix edit version

diff --git a/src/common/docman/DocumentVersionFactory.class.php 
b/src/common/docman/DocumentVersionFactory.class.php
index 36dcfad..4f8e70d 100644
--- a/src/common/docman/DocumentVersionFactory.class.php
+++ b/src/common/docman/DocumentVersionFactory.class.php
@@ -86,7 +86,7 @@ class DocumentVersionFactory extends FFError {
                                if (preg_match('/html/i', $arr['filetype'])) { 
// text plain, text html, text x-patch, etc
                                        $isHtml = 1;
                                }
-                               $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: 
\''.addslashes($arr['description']).'\', version: '.$arr['version'].', 
current_version: '.$arr['current_version'].', isURL: '.$isURL.', isText: 
'.$isText.', isHtml: '.$isHtml.', filename: 
\''.addslashes($arr['filename']).'\', vcomment: 
\''.addslashes($arr['vcomment']).'\'})'), true);
+                               $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: 
\''.addslashes($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);
                                }

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

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


hooks/post-receive
-- 
FusionForge

_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits

Reply via email to