diff --git a/ChangeLog b/ChangeLog index 3fe24d036..ccaa79bc5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2010-11-15 Wolfgang Sourdeau + + * UI/Scheduler/UIxAppointmentEditor.m (-saveAction): check the + equality of componentCalendar and previousCalendar by comparing + their ocsPath, since the objects themselves might be different + instances when the current user has logged in with a different + identifier than his/her uid. + 2010-11-12 Francis Lachapelle * UI/WebServerResources/MailerUI.js (messageFlagCallback): now diff --git a/SoObjects/SOGo/SOGoUserManager.m b/SoObjects/SOGo/SOGoUserManager.m index d98edd1fd..9ab8aa2d3 100644 --- a/SoObjects/SOGo/SOGoUserManager.m +++ b/SoObjects/SOGo/SOGoUserManager.m @@ -443,8 +443,8 @@ setUserAttributes: [currentUser jsonRepresentation] forLogin: _login]; } - else - checkOK = NO; + else + checkOK = NO; return checkOK; } diff --git a/UI/Scheduler/UIxAppointmentEditor.m b/UI/Scheduler/UIxAppointmentEditor.m index e13d76644..1478e529a 100644 --- a/UI/Scheduler/UIxAppointmentEditor.m +++ b/UI/Scheduler/UIxAppointmentEditor.m @@ -375,7 +375,9 @@ if ([co isNew]) { - if (componentCalendar && componentCalendar != previousCalendar) + if (componentCalendar + && ![[componentCalendar ocsPath] + isEqualToString: [previousCalendar ocsPath]]) { // New event in a different calendar -- make sure the user can // write to the selected calendar since the rights were verified @@ -397,7 +399,9 @@ // The event was modified -- save it. [co saveComponent: event]; - if (componentCalendar && componentCalendar != previousCalendar) + if (componentCalendar + && ![[componentCalendar ocsPath] + isEqualToString: [previousCalendar ocsPath]]) { // The event was moved to a different calendar. if (![sm validatePermission: SoPerm_DeleteObjects