mirror of
https://github.com/documize/community.git
synced 2025-07-20 13:49:42 +02:00
trap for null raw body
This commit is contained in:
parent
480e1b6300
commit
a5a4d6b276
1 changed files with 1 additions and 1 deletions
|
@ -450,7 +450,7 @@ func (p *Persister) GetDocumentPageMeta(documentID string, externalSourceOnly bo
|
||||||
|
|
||||||
// GetPageRevision returns the revisionID page revision record.
|
// GetPageRevision returns the revisionID page revision record.
|
||||||
func (p *Persister) GetPageRevision(revisionID string) (revision entity.Revision, err error) {
|
func (p *Persister) GetPageRevision(revisionID string) (revision entity.Revision, err error) {
|
||||||
stmt, err := Db.Preparex("SELECT id, refid, orgid, documentid, ownerid, pageid, userid, contenttype, pagetype, title, body, rawbody, coalesce(config,JSON_UNQUOTE('{}')) as config, created, revised FROM revision WHERE orgid=? and refid=?")
|
stmt, err := Db.Preparex("SELECT id, refid, orgid, documentid, ownerid, pageid, userid, contenttype, pagetype, title, body, coalesce(rawbody, '') as rawbody, coalesce(config,JSON_UNQUOTE('{}')) as config, created, revised FROM revision WHERE orgid=? and refid=?")
|
||||||
defer utility.Close(stmt)
|
defer utility.Close(stmt)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue