1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-19 05:09:42 +02:00

PDF section type build prep

Closes #207 -- view PDF's with new PDF section type.
This commit is contained in:
Harvey Kandola 2019-04-19 13:18:31 +01:00
parent b5cd378302
commit 728789195c
9 changed files with 844 additions and 789 deletions

View file

@ -13,9 +13,9 @@ All you need to provide is PostgreSQL, Microsoft SQL Server or any MySQL variant
## Latest Release ## Latest Release
[Community Edition: v2.3.2](https://github.com/documize/community/releases) [Community Edition: v2.4.0](https://github.com/documize/community/releases)
[Enterprise Edition: v2.3.2](https://www.documize.com/downloads) [Enterprise Edition: v2.4.0](https://www.documize.com/downloads)
> *We provide frequent product updates for both cloud and self-hosted customers.* > *We provide frequent product updates for both cloud and self-hosted customers.*
> >

View file

@ -0,0 +1,4 @@
/* Community Edition */
-- Support per section attachments
ALTER TABLE dmz_doc_attachment ADD COLUMN `c_sectionid` VARCHAR(20) NOT NULL DEFAULT '' COLLATE utf8_bin AFTER `c_docid`;

View file

@ -2,5 +2,3 @@
-- Support per section attachments -- Support per section attachments
ALTER TABLE dmz_doc_attachment ADD COLUMN c_sectionid VARCHAR(20) NOT NULL DEFAULT '' COLLATE ucs_basic; ALTER TABLE dmz_doc_attachment ADD COLUMN c_sectionid VARCHAR(20) NOT NULL DEFAULT '' COLLATE ucs_basic;
-- Deprecations

View file

@ -0,0 +1,4 @@
/* Community Edition */
-- Support per section attachments
ALTER TABLE dmz_doc_attachment ADD c_sectionid NVARCHAR(20) COLLATE Latin1_General_CS_AS NOT NULL DEFAULT '';

View file

@ -669,6 +669,9 @@ func (h *Handler) FetchDocumentData(w http.ResponseWriter, r *http.Request) {
response.WriteServerError(w, method, err) response.WriteServerError(w, method, err)
return return
} }
if len(a) == 0 {
a = []attachment.Attachment{}
}
// Prepare response. // Prepare response.
data := BulkDocumentData{} data := BulkDocumentData{}

View file

@ -40,9 +40,9 @@ func main() {
// product details // product details
rt.Product = domain.Product{} rt.Product = domain.Product{}
rt.Product.Major = "2" rt.Product.Major = "2"
rt.Product.Minor = "3" rt.Product.Minor = "4"
rt.Product.Patch = "2" rt.Product.Patch = "0"
rt.Product.Revision = "190416125622" rt.Product.Revision = "190419131243"
rt.Product.Version = fmt.Sprintf("%s.%s.%s", rt.Product.Major, rt.Product.Minor, rt.Product.Patch) rt.Product.Version = fmt.Sprintf("%s.%s.%s", rt.Product.Major, rt.Product.Minor, rt.Product.Patch)
rt.Product.Edition = domain.CommunityEdition rt.Product.Edition = domain.CommunityEdition
rt.Product.Title = fmt.Sprintf("%s Edition", rt.Product.Edition) rt.Product.Title = fmt.Sprintf("%s Edition", rt.Product.Edition)

File diff suppressed because one or more lines are too long

View file

@ -258,7 +258,7 @@ export default Controller.extend(Notifier, {
if (reloadPage) { if (reloadPage) {
window.location.reload(); window.location.reload();
} else { } else {
resolve(); resolve();
} }
}); });
}); });

View file

@ -1,6 +1,6 @@
{ {
"name": "documize", "name": "documize",
"version": "2.3.2", "version": "2.4.0",
"description": "The Document IDE", "description": "The Document IDE",
"repository": "", "repository": "",
"license": "AGPL", "license": "AGPL",