Skip to content

Commit

Permalink
Merge branch 'master' of github.com:brendo/default_event_values
Browse files Browse the repository at this point in the history
  • Loading branch information
Brendan Abbott committed Jun 6, 2011
2 parents 361d31d + 624dc32 commit 594c551
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions extension.driver.php
Expand Up @@ -187,6 +187,9 @@ public function setDefaultValues(&$context) {
-------------------------------------------------------------------------*/

private function injectFields(XMLElement &$form, array $callback) {
// skip when creating new events
if ($callback['context'][0] == 'new') return;

$eventManager = new EventManager(Symphony::Engine());
$event = $eventManager->create($callback['context'][1]);
$event_source = null;
Expand Down

0 comments on commit 594c551

Please sign in to comment.