From: Franck Villaume Date: Fri, 17 Dec 2021 13:12:39 +0000 (+0100) Subject: add missing column in documentversion_get_object X-Git-Url: https://scm.fusionforge.org/anonscm/gitweb?p=fusionforge%2Ffusionforge.git;a=commitdiff_plain;h=b921ceef1a45c7dce52ea14f4efbc8dbdd9cffb3 add missing column in documentversion_get_object --- diff --git a/src/common/docman/DocumentVersion.class.php b/src/common/docman/DocumentVersion.class.php index a0649afab6..7b693daf4b 100644 --- a/src/common/docman/DocumentVersion.class.php +++ b/src/common/docman/DocumentVersion.class.php @@ -2,7 +2,7 @@ /** * FusionForge Documentation Manager * - * Copyright 2016, Franck Villaume - TrivialDev + * Copyright 2016,2021, Franck Villaume - TrivialDev * http://fusionforge.org * * This file is part of FusionForge. FusionForge is free software; @@ -33,7 +33,7 @@ function &documentversion_get_object($ver_id, $docid, $group_id, $res = false) { //the db result handle was passed in } else { // data_words is not retrieve. Too much memory consumption. - $res = db_query_params('SELECT serial_id, version, docid, current_version, title, updatedate, createdate, created_by, description, filename, filetype, filesize FROM doc_data_version WHERE version = $1 AND docid = $2', + $res = db_query_params('SELECT serial_id, version, docid, current_version, title, updatedate, createdate, created_by, description, filename, filetype, filesize, vcomment FROM doc_data_version WHERE version = $1 AND docid = $2', array($ver_id, $docid)); } if (!$res || db_numrows($res) < 1) {