Fixes for events
authorSteve Sutton <steve@gaslightmedia.com>
Wed, 20 Aug 2014 16:45:02 +0000 (12:45 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Wed, 20 Aug 2014 16:45:02 +0000 (12:45 -0400)
Fix for url's on the event detail page
Fix for the name search if nothing is put in than default to first page
of event list.

static/16.phtml

index 701a477..845ca6f 100755 (executable)
@@ -21,6 +21,9 @@ if (defined('COMMON_EVENTS') && COMMON_EVENTS) {
         $_REQUEST['startMonth'] = $_REQUEST['endMonth'] = date('m/d/Y', $time);
     }
     $search  = filter_var($_REQUEST['search'], FILTER_VALIDATE_BOOLEAN);
+    if ($search && isset($_REQUEST['eventName']) && !$eventName = filter_var($_REQUEST['eventName'])) {
+        $search = false;
+    }
     $t       = filter_var($_REQUEST['t']);
     $eventId = filter_var($_REQUEST['eventid'], FILTER_VALIDATE_INT);
     if (!$t && !$search && !$eventId) {
@@ -41,6 +44,7 @@ if (defined('COMMON_EVENTS') && COMMON_EVENTS) {
     define('COMMON_APP_PATH', $appPath);
     // now only need to pull in the main file to run the app
     // pull in admin.php file
+    unset($GLOBALS['bottomScripts']['external']);
     require COMMON_APP_PATH . 'Bootstrap.php';
 } else {
     $events = new Toolkit_Events_Display(