Bug: Selecting Requestor Name from Userlist

Bug: Selecting Requestor Name from Userlist

If you click on the "Show Requester" button within a request form, which pops open a new window with the "Requester List", when you click on a user name - it is populated into the Request but the popped up window does NOT close itself. It blanks out. You must manually click the "x" to close the window.

The blank browser window HAS source code, which is as follows:
















<script type="text/javascript" src="/scripts/IncludeSDPScripts.js?8"></script>
<script>includeSDPScripts('', true, '7018','en_US');</script>
<link rel="SHORTCUT ICON" href="/images/favicon.ico"/>
<script>includeSDPStyle('', '/style/style.css', '7018');</script>
<script>

/***********************************************
* AnyLink Drop Down Menu- ��� Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/
</script>







<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>AdventNet ManageEngine ServiceDesk Plus - Search Requester</title>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">

<form name="SearchUserForm" method="post" action="/SearchRequester.do">
<input type="hidden" name="fromModule" value="WorkOrder">
<input type="hidden" name="woReqName" value="">
<input type="hidden" name="woReqID" value="">
<input type="hidden" name="reqDept" value="">
<input type="hidden" name="reqMobile" value="">
<input type="hidden" name="reqWS" value="">
<input type="hidden" name="partialName" value="">
</form>

<!--logic:equal name="fromModule" scope="request" value="WorkOrder"-->

<script language="javascript">
/* //{{{
ele2=document.SearchUserForm.reqDept.value; // document.WorkOrderForm.location
ele3=document.SearchUserForm.reqMobile.value; // document.WorkOrderForm.contactNumber
ele5=document.SearchUserForm.reqWS.value; // document.WorkOrderForm.workstationID
ele1=document.SearchUserForm.woReqName.value;
ele4=document.SearchUserForm.woReqID.value; */

/* local = eval('top.window.opener.'+ele2);
alert(local);
contact = eval('top.window.opener.'+ele3);
reqName = eval('top.window.opener.'+ele1);
reqID = eval('top.window.opener.'+ele4);
wsID = eval('top.window.opener.'+ele5); */

/* local.value = ""
contact.value = "925-852-2592"
reqName.value = "John Roberts"
reqID.value = "6"
wsID.value = "0"//}}}
*/
window.opener.document.getElementById("reqSearch").value="John Roberts";
</script>

<script>
window.opener.document.getElementById("locationField").value="";
window.opener.document.getElementById("contactNoField").value="925-852-2592";
window.opener.document.getElementById("requesterID").value="6";
//window.opener.document.getElementById("workstationID").value="0";
// ajax call to get user assets
window.opener.getUserAssets('reqSearch', 'workstationID','requesterID');
// NOTE: DO NOT CLOSE THIS WINDOW. It interferes with the ajax response. will be closed when the response is completed
// this parameter will be used to close this window on server response
window.opener.parent['selectuser'] = window;
</script>

<!--/logic:equal-->
<!--logic:equal name="fromModule" scope="request" value="QuickReq"-->
<!--%
String str3 = (String)request.getAttribute("userName");
Long str4 = (Long)request.getAttribute("userSelected");
%-->

<!--/logic:equal-->






</body>
</html>












































































































It seems the window is intended to close itself, but it doesn't.





                    New to ADSelfService Plus?