Author: vdegtyarev
Date: Fri May 29 12:11:57 2015
New Revision: 1682436

URL: http://svn.apache.org/r1682436
Log:
OPENMEETINGS-1213 Minor changes. Invitation works as expected for contacts.

Modified:
    
openmeetings/branches/3.0.x/src/main/java/org/apache/openmeetings/remote/InvitationService.java

Modified: 
openmeetings/branches/3.0.x/src/main/java/org/apache/openmeetings/remote/InvitationService.java
URL: 
http://svn.apache.org/viewvc/openmeetings/branches/3.0.x/src/main/java/org/apache/openmeetings/remote/InvitationService.java?rev=1682436&r1=1682435&r2=1682436&view=diff
==============================================================================
--- 
openmeetings/branches/3.0.x/src/main/java/org/apache/openmeetings/remote/InvitationService.java
 (original)
+++ 
openmeetings/branches/3.0.x/src/main/java/org/apache/openmeetings/remote/InvitationService.java
 Fri May 29 12:11:57 2015
@@ -109,7 +109,11 @@ public class InvitationService implement
                                Calendar calFrom = getDate(validFromDate, 
validFromTime, iCalTz);
                                Calendar calTo = getDate(validToDate, 
validToTime, iCalTz);
        
-                               users_id = users_id > 0 ? users_id : -users_id;
+                               User owner = null;
+                               if (users_id < 0) {
+                                       owner = userDao.get(-users_id);
+                               }
+                               users_id = owner == null ? users_id : 
owner.getUser_id();
                                User invitee = userDao.getContact(email, 
firstname, lastname, users_id);
                                Invitation invitation = 
invitationManager.getInvitation(invitee, roomDao.get(room_id),
                                                                
isPasswordProtected, invitationpass, Valid.fromInt(valid)


Reply via email to