Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 6.1.1 CE GA2, 6.1.20 EE GA2
-
Fix Version/s: 6.1.X EE, 6.2.0 CE M4
-
Component/s: Legacy, Legacy > Control Panel menu
-
Labels:
-
Branch Version/s:6.1.x
-
Backported to Branch:Committed
-
Story Points:2
-
Fix Priority:2
-
Similar Issues:
Description
Go to Control Panel -> Server Administration -> Shutdown
Fill the messages, and click on Shutdown.
A message appears on the top of the screen, and a Cancel Shutdown button next to Shutdown button.
The Shutdown button should disappear, because no any sense. You can use Cancel Shutdown.
6.2.x git id: 8b37e24c5c6e8e1f072a47ac9e2a54ab0d90baa4

Here is the Solution:
At below path you will find a code snippet like below:
PATH of FILE: <liferay-installation-directory>/webapps/ROOT/html/portlet/admin/server.jspf
At LINE 801:
<aui:button onClick="<%= taglibShutdown %>" value="shutdown" />
Change it to like below(with Condition):
<c:if test="<%= !ShutdownUtil.isInProcess() %>">
<aui:button onClick="<%= taglibShutdown %>" value="shutdown" />
</c:if>
And refresh the page at browser(your installation must be in development mode).
Now after this code change, you will notice, that once you set SHUTDOWN timer, Shutdoen button will hide and "Cancel Shuddown" will prompt.
We believe this should resolve your issue.
Thanks
James Matrix