refactor rename NODE_HANLDER.do_restore instead of do_revert.
This commit is contained in:
@@ -143,7 +143,7 @@ feature -- HTTP Methods
|
|||||||
attached {WSF_STRING} req.form_parameter ("op") as l_op and then
|
attached {WSF_STRING} req.form_parameter ("op") as l_op and then
|
||||||
l_op.value.same_string ("Revert")
|
l_op.value.same_string ("Revert")
|
||||||
then
|
then
|
||||||
do_revert (req, res)
|
do_restore (req, res)
|
||||||
end
|
end
|
||||||
elseif req.path_info.starts_with_general ("/node/add/") then
|
elseif req.path_info.starts_with_general ("/node/add/") then
|
||||||
create edit_response.make (req, res, api, node_api)
|
create edit_response.make (req, res, api, node_api)
|
||||||
@@ -223,7 +223,7 @@ feature {NONE} -- Trash:Revert
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
do_revert (req: WSF_REQUEST; res: WSF_RESPONSE)
|
do_restore (req: WSF_REQUEST; res: WSF_RESPONSE)
|
||||||
-- Revert a node: From {CMS_NODE_API}.trashed to {CMS_NODE_API}.not_published.
|
-- Revert a node: From {CMS_NODE_API}.trashed to {CMS_NODE_API}.not_published.
|
||||||
do
|
do
|
||||||
if attached current_user (req) as l_user then
|
if attached current_user (req) as l_user then
|
||||||
|
|||||||
Reference in New Issue
Block a user