]> err.no Git - scalable-opengroupware.org/blobdiff - SOGo/UI/Scheduler/UIxAppointmentEditor.m
more code for day overview and the usual fixes
[scalable-opengroupware.org] / SOGo / UI / Scheduler / UIxAppointmentEditor.m
index 0eeb5058c78268d77ebe78bc915135712a9edc68..ab9e5196973d7b9cffee0f3d771a27d0730534fa 100644 (file)
   NSRange r;
 
   uri = [[[self context] request] uri];
-    
+
   /* first: identify query parameters */
   r = [uri rangeOfString:@"?" options:NSBackwardsSearch];
   if (r.length > 0) {
-    uri = [uri substringToIndex:r.location];
     qp = [uri substringFromIndex:r.location];
+    uri = [uri substringToIndex:r.location];
   }
   else
     qp = nil;
   nextMethod = [NSString stringWithFormat:@"%@/edit", objectId];
   uriFormat  = [self uriAsFormat];
   uri = [[NSString alloc] initWithFormat:uriFormat, nextMethod];
-  
   req = [[self context] request];
   r = [WOResponse responseWithRequest:req];
   [r setStatus:302 /* moved */];