Permalink
Browse files

bugfix - ajax request to loadfromtime() and loadfromgroup() was getti…

…ng Requirements js which breaks the invitations popup when in livemode
  • Loading branch information...
1 parent ef920b5 commit 376ebef91b14dfb1bd403f3ae4032acda568b517 Shea committed May 9, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 code/formfields/EventInvitationField.php
@@ -216,6 +216,8 @@ public function loadfromgroup($request) {
);
}
+ Requirements::clear();
+
$response = new SS_HTTPResponse(Convert::array2json($result));
$response->addHeader('Content-Type', 'application/json');
return $response;
@@ -239,6 +241,8 @@ public function loadfromtime($request) {
);
}
+ Requirements::clear();
+
$response = new SS_HTTPResponse(Convert::array2json($result));
$response->addHeader('Content-Type', 'application/json');
return $response;

0 comments on commit 376ebef

Please sign in to comment.