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 2b671ad517bad81cc6dc4703c7cb5bb061e5a82d (commit)
from d59192aa3d3c1fa579a262d148fa56d02f4fb97a (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=2b671ad517bad81cc6dc4703c7cb5bb061e5a82d
commit 2b671ad517bad81cc6dc4703c7cb5bb061e5a82d
Author: Franck Villaume <[email protected]>
Date: Sun Oct 23 20:02:48 2016 +0200
add missing action file
diff --git a/src/common/docman/actions/getassociations.php
b/src/common/docman/actions/getassociations.php
new file mode 100644
index 0000000..f2da3e4
--- /dev/null
+++ b/src/common/docman/actions/getassociations.php
@@ -0,0 +1,52 @@
+<?php
+/**
+ * FusionForge Documentation Manager
+ *
+ * Copyright 2016, Franck Villaume - TrivialDev
+ * http://fusionforge.org
+ *
+ * This file is part of FusionForge. FusionForge is free software;
+ * you can redistribute it and/or modify it under the terms of the
+ * GNU General Public License as published by the Free Software
+ * Foundation; either version 2 of the Licence, or (at your option)
+ * any later version.
+ *
+ * FusionForge is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with FusionForge; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
+/* please do not add require here : use www/docman/index.php to add require */
+/* global variables used */
+global $group_id; // id of group
+global $HTML;
+
+$sysdebug_enable = false;
+$result = array();
+
+if (!forge_check_perm('docman', $group_id, 'approve')) {
+ $result['html'] = $HTML->error_msg(_('Document Manager Action
Denied.'));
+ echo json_encode($result);
+ exit;
+}
+
+$docid = getIntFromRequest('docid');
+if ($docid) {
+ $documentObject = document_get_object($docid, $group_id);
+ if ($documentObject && !$documentObject->isError()) {
+ $result['html'] =
$documentObject->showAssociations('/docman/?group_id='.$group_id.'&action=deleteassociations&docid='.$docid);
+ $result['html'] .= $documentObject->showAddAssociations();
+ } else {
+ $result['html'] = $HTML->warning_msg(_('Cannot retrieve
document')._(': ').$docid);
+ }
+} else {
+ $result['html'] = $HTML->warning_msg(_('No document ID. Cannot retrieve
versions.'));
+}
+
+echo json_encode($result);
+exit;
-----------------------------------------------------------------------
Summary of changes:
.../actions/{getdocversions.php => getassociations.php} | 11 ++---------
1 file changed, 2 insertions(+), 9 deletions(-)
copy src/common/docman/actions/{getdocversions.php => getassociations.php}
(83%)
hooks/post-receive
--
FusionForge
_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits