Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PERFORMA_REPLICA
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Muhammad Usman
PERFORMA_REPLICA
Commits
1a87c338
Commit
1a87c338
authored
Mar 01, 2019
by
Nilu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
S21287677 # Client - Incoming Issues (raised by Client) #Warning if no HT Logo
modifications
parent
14677235
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
17 deletions
+10
-17
SaveCompanyFP.java
cmsWebApp/src/performa/form/SaveCompanyFP.java
+2
-5
my_company.jsp
cmsWebApp/webroot/extensions/adminportal/my_company.jsp
+8
-12
No files found.
cmsWebApp/src/performa/form/SaveCompanyFP.java
View file @
1a87c338
...
...
@@ -32,12 +32,9 @@ public class SaveCompanyFP extends SaveFP
Boolean
isPayment
=
(
Boolean
)
request
.
getAttribute
(
"IsPayment"
);
Subscription
subscription
=
StripeUtils
.
retrieveSubscription
(
hiringTeam
.
getStripeSubscription
());
Boolean
isHTLogoPresent
=
process
.
getAttribute
(
"IsHTLogoPresent"
)
!=
null
?
(
Boolean
)
process
.
getAttribute
(
"IsHTLogoPresent"
)
:
Boolean
.
FALSE
;
// String nextPage = (String)request.getAttribute("nextPage");
Article
article
=
WebUtils
.
getArticleByShortCut
(
process
.
getTransaction
(),
WebUtils
.
MY_COMPANY
);
String
hiringPage
=
LoopbackHTTP
.
getRemoteAccessURL
(
request
)
+
article
.
getLink
(
request
,
CollectionUtils
.
mapEntry
(
"cms.rm"
,
"HiringTeam"
).
toMap
(),
"/"
);
String
nextPage
=
LoopbackHTTP
.
getRemoteAccessURL
(
request
)
+
article
.
getLink
(
request
,
CollectionUtils
.
mapEntry
(
"cms.rm"
,
"Page
"
).
toMap
(),
"/"
);
+
article
.
getLink
(
request
,
CollectionUtils
.
mapEntry
(
"cms.rm"
,
hiringTeam
.
getHiringTeamLogo
()
!=
null
?
"Page"
:
"HiringTeam
"
).
toMap
(),
"/"
);
if
(
CollectionUtils
.
equals
(
hiringTeam
.
getIsLogoDeleted
(),
Boolean
.
TRUE
))
{
...
...
@@ -79,7 +76,7 @@ public class SaveCompanyFP extends SaveFP
{
process
.
setAttribute
(
"IsHTLogoPresent"
,
Boolean
.
FALSE
);
return
new
ProcessRedirectResult
(
hiring
Page
,
new
String
[]{});
return
new
ProcessRedirectResult
(
next
Page
,
new
String
[]{});
}
process
.
setAttribute
(
"nextPage"
,
nextPage
);
...
...
cmsWebApp/webroot/extensions/adminportal/my_company.jsp
View file @
1a87c338
...
...
@@ -197,28 +197,24 @@
</span>
<%
}
// if(hiringTeam.getHiringTeamLogo() == null)
// {
// nextPage = WebUtils.getSamePageInRenderMode(request, "HiringTeam");
// }
Boolean isHTLogoPresent = (Boolean)process.getAttribute("IsHTLogoPresent");
Boolean isHTLogoPresent = (Boolean)
process.getAttribute("IsHTLogoPresent");
if(
isHTLogoPresent != null && isHTLogoPresent == Boolean.FALSE
)
if(
CollectionUtils.equals(isHTLogoPresent, Boolean.FALSE)
)
{
process.setAttribute("IsHTLogoPresent",Boolean.TRUE);
process.setAttribute("IsHTLogoPresent",
Boolean.TRUE);
%>
<div id="overlay">
<div class="modal-dialog welcome-pop-top">
<div class="modal-body main-welcome-popup">
<h2>
The HT Logo is missing
!</h2>
<h2>
You haven't added a logo yet
!</h2>
<p>Please add a logo to your hiring team.</p>
<div class="create-y-f-job">
<oneit:button value="Ok" name="saveCompany" skin="link"
requestAttribs="<%= CollectionUtils.mapEntry("nextPage", WebUtils.getSamePageInRenderMode(request, "Page"))
requestAttribs="<%= CollectionUtils.mapEntry("nextPage", WebUtils.getSamePageInRenderMode(request, "HiringTeam"))
.mapEntry ("restartProcess", Boolean.TRUE)
.mapEntry("procParams", CollectionUtils.mapEntry("HiringTeam", hiringTeam).mapEntry("IsHTLogoPresent",Boolean.TRUE).toMap())
.mapEntry
("Company", company
)
.mapEntry
("attribNamesToRestore", Collections.singleton("HiringTeam")
)
.toMap() %>">
</oneit:button>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment