[Ils-source] r1355 - trunk/webapp
scribe at crosswire.org
scribe at crosswire.org
Tue Nov 10 17:28:20 MST 2015
Author: scribe
Date: 2015-11-10 17:28:20 -0700 (Tue, 10 Nov 2015)
New Revision: 1355
Modified:
trunk/webapp/report_employeecourseatt.jsp
Log:
added an error message if trying to lookup an employee who doesn't exist.
Modified: trunk/webapp/report_employeecourseatt.jsp
===================================================================
--- trunk/webapp/report_employeecourseatt.jsp 2015-11-11 00:26:54 UTC (rev 1354)
+++ trunk/webapp/report_employeecourseatt.jsp 2015-11-11 00:28:20 UTC (rev 1355)
@@ -23,15 +23,23 @@
UserProfile user = ilsSession.getCurrentUserProfile();
UserProfile current = user;
boolean managing = false;
- String action = request.getParameter("action");
+ String action = request.getParameter("action");
+ int profileID = current.getUserProfileID();
String tmpBuf = request.getParameter("profileid");
- int profileID = current.getUserProfileID();
if (tmpBuf != null) {
try {
if (user.getUserProfileAccessLevel() >= UserProfile.ACCESS_MANAGER) {
int tmpID = Integer.parseInt(tmpBuf);
if (tmpID != current.getUserProfileID()) {
current = UserProfile.getUserProfile(ilsSession, tmpID);
+ if (current == null) {
+%>
+<h2>
+No user with userProfileID: <%=tmpID%>; company: <%=ilsSession.getCompanyID()%>
+</h2>
+<%
+ return;
+ }
profileID = current.getUserProfileID();
}
managing = true;
More information about the Ils-source
mailing list