summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--application/controllers/EventController.php1
-rw-r--r--setup/poolctrl_data.sql16
2 files changed, 9 insertions, 8 deletions
diff --git a/application/controllers/EventController.php b/application/controllers/EventController.php
index 64243cd..bf10891 100644
--- a/application/controllers/EventController.php
+++ b/application/controllers/EventController.php
@@ -90,6 +90,7 @@ class EventController extends Zend_Controller_Action
echo "Message: " . $e->getMessage() . "<br/>";
return;
}
+ $this->_redirect('/event/');
} else {
$this->_redirect('/event/');
return;
diff --git a/setup/poolctrl_data.sql b/setup/poolctrl_data.sql
index ca3ae93..9967aee 100644
--- a/setup/poolctrl_data.sql
+++ b/setup/poolctrl_data.sql
@@ -100,13 +100,13 @@ INSERT INTO `pbs_poolentries` (`poolentriesID`, `poolID`, `clientID`) VALUES
(10, 4, 10);
-- Adding events
-INSERT INTO `poolctrl_event` (`title`, `start`, `end`, `category`, `pbs_poolID`, `pbs_membershipID`, `pbs_bootosID`, `note`) VALUES
-('Systeme I', '2011-06-24 12:10:00', '2011-06-24 14:00:00', 'Vorlesung', 1, 1, 1, 'Systeme I Vorlesung'),
-('Systeme II', '2011-06-24 14:10:00', '2011-06-24 16:00:00', 'Vorlesung', 1, 1, 1, 'Systeme II Vorlesung'),
-('Systeme III', '2011-06-24 16:10:00', '2011-06-24 18:00:00', 'Vorlesung', 1, 1, 1, 'Systeme III Vorlesung');
+INSERT INTO `poolctrl_event` (`eventID`, `title`, `start`, `end`, `category`, `pbs_poolID`, `pbs_membershipID`, `pbs_bootosID`, `note`) VALUES
+(1, 'Systeme I', '2011-06-24 12:10:00', '2011-06-24 14:00:00', 'Vorlesung', 1, 1, 1, 'Systeme I Vorlesung'),
+(2, 'Systeme II', '2011-06-24 14:10:00', '2011-06-24 16:00:00', 'Vorlesung', 1, 1, 1, 'Systeme II Vorlesung'),
+(3, 'Systeme III', '2011-06-24 16:10:00', '2011-06-24 18:00:00', 'Vorlesung', 1, 1, 1, 'Systeme III Vorlesung');
-- Adding eventreport
-INSERT INTO `poolctrl_eventreport` (`report`, `eventID`) VALUES
-(DEFAULT, 1),
-(DEFAULT, 2),
-('wake-on-lan failed', 3);
+INSERT INTO `poolctrl_eventreport` (`reportID`, `report`, `eventID`) VALUES
+(1, DEFAULT, 1),
+(2, DEFAULT, 2),
+(3, 'wake-on-lan failed', 3);