Better syntax formating for SQL query related to comments module.
Display import link from admin page. Removed unused local variables.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
note
|
||||
description: "Summary description for {CMS_ADMIN_RESPONSE}."
|
||||
description: "Response for the /admin request."
|
||||
date: "$Date$"
|
||||
revision: "$Revision$"
|
||||
|
||||
@@ -29,6 +29,7 @@ feature -- Process
|
||||
l_admin_links.force (["core", <<"view logs">>, local_link ("Logs", "admin/logs"), "View logs"])
|
||||
l_admin_links.force (["support", <<"admin cache">>, local_link ("Cache", "admin/cache"), "Clear caches"])
|
||||
l_admin_links.force (["support", <<"admin export">>, local_link ("Export", "admin/export"), "Export CMS contents, and modules contents."])
|
||||
l_admin_links.force (["support", <<"admin import">>, local_link ("Export", "admin/import"), "Import CMS contents, and modules contents."])
|
||||
create categories.make_caseless (3)
|
||||
across
|
||||
l_admin_links as ic
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
note
|
||||
description: "Interface for accessing user profile contents from SQL database."
|
||||
date: "$Date: 2015-05-21 14:46:00 +0100$"
|
||||
revision: "$Revision: 96616 $"
|
||||
revision: "$Revision: 99775 $"
|
||||
|
||||
class
|
||||
CMS_COMMENTS_STORAGE_SQL
|
||||
@@ -86,7 +86,7 @@ feature -- Change
|
||||
l_parameters.put (a_comment.modification_date, "changed")
|
||||
l_parameters.put (a_comment.status, "status")
|
||||
|
||||
if attached a_comment.parent as p then
|
||||
if attached a_comment.parent as p and then p.has_id then
|
||||
l_parameters.put (p.id, "parent")
|
||||
else
|
||||
l_parameters.put (0, "parent")
|
||||
|
||||
@@ -25,8 +25,6 @@ feature -- Comments helpers
|
||||
|
||||
import_comments_file_for_entity (fn: PATH; a_entity: CMS_CONTENT; api: CMS_API; a_import_ctx: CMS_IMPORT_CONTEXT)
|
||||
local
|
||||
s: STRING
|
||||
jp: JSON_PARSER
|
||||
l_comment: CMS_COMMENT
|
||||
l_log: STRING_8
|
||||
do
|
||||
|
||||
Reference in New Issue
Block a user