Commit 30c3c027 by Nilu

fix issue : hiring team name was set to empty when creating an account using social media

parent 53775818
...@@ -18,6 +18,11 @@ ...@@ -18,6 +18,11 @@
Debug.assertion(hiringTeam != null, "No Hiring Team added in admin portal"); Debug.assertion(hiringTeam != null, "No Hiring Team added in admin portal");
if(socialLogin)
{
hiringTeam.setHiringTeamName(company.getCompanyName());
}
CompanyUser companyUser = company.getAddedByUser(); CompanyUser companyUser = company.getAddedByUser();
SecUser secUser = companyUser.getUser(); SecUser secUser = companyUser.getUser();
Integer pageNumber = 1; Integer pageNumber = 1;
......
...@@ -139,8 +139,7 @@ ...@@ -139,8 +139,7 @@
{ {
%> %>
<oneit:button value="Create my account" name="gotoPage" cssClass="box-btn verify-btn" <oneit:button value="Create my account" name="gotoPage" cssClass="box-btn verify-btn"
requestAttribs="<%= CollectionUtils.mapEntry("socialLogin", socialLogin) requestAttribs="<%= CollectionUtils.mapEntry("procParams", CollectionUtils.mapEntry("Company", companyUser.getCompany()).mapEntry("socialLogin", socialLogin).toMap())
.mapEntry("procParams", CollectionUtils.mapEntry("Company", companyUser.getCompany()).toMap())
.mapEntry("nextPage", nextPage).toMap() %>"/> .mapEntry("nextPage", nextPage).toMap() %>"/>
<% <%
} }
...@@ -176,9 +175,9 @@ ...@@ -176,9 +175,9 @@
</div> </div>
<oneit:button value="Sign up" name="sendCompanyUserInvites" cssClass="box-btn verify-btn" <oneit:button value="Sign up" name="sendCompanyUserInvites" cssClass="box-btn verify-btn"
requestAttribs="<%= CollectionUtils.mapEntry("socialLogin", socialLogin) requestAttribs="<%= CollectionUtils.mapEntry("CompanyUser", companyUser)
.mapEntry("CompanyUser", companyUser)
.mapEntry("nextPage", homePage) .mapEntry("nextPage", homePage)
.mapEntry("procParams", CollectionUtils.mapEntry("socialLogin", socialLogin).mapEntry("Company", company).toMap())
.toMap() %>"/> .toMap() %>"/>
<% <%
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment