Skip to content
Snippets Groups Projects
Commit be8a536f authored by Tobias Ullerich's avatar Tobias Ullerich
Browse files

Fixed PadAddListener with right content type

parent f799c9ff
No related branches found
No related tags found
No related merge requests found
......@@ -22,6 +22,10 @@ class PadAddListener extends Listener {
SqlHelper.insertOrUpdate(connection, SqlDef.PAD, padId, SqlDef.PAD_PAGE_REF, pageId)
SqlHelper.insertOrUpdate(connection, SqlDef.PAD, padId, SqlDef.PAD_NAME, padName)
SqlHelper.insertOrUpdate(connection, SqlDef.PAD, padId, SqlDef.PAD_POSITION, padPosition)
SqlHelper.insertOrUpdate(connection, SqlDef.PAD, padId, SqlDef.PAD_CONTENT_TYPE, null)
if (!json.get("contentType").isJsonNull) {
val contentType = json.get("contentType").getAsString;
SqlHelper.insertOrUpdate(connection, SqlDef.PAD, padId, SqlDef.PAD_CONTENT_TYPE, contentType)
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment