<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.3 |
+ | CiviCRM version 4.4 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2013 |
+--------------------------------------------------------------------+
$this->type("xpath=//div[@class='crm-block crm-form-block crm-event-searchevent-form-block']/table/tbody/tr/td/input",$params['title']);
$this->click("_qf_SearchEvent_refresh");
$this->waitForPageToLoad($this->getTimeoutMsec());
- $this->click("link=" . $params['title']);
+ $this->clickLink("link=" . $params['title'], NULL);
- $this->waitForPageToLoad($this->getTimeoutMsec());
-
- $matches = array();
- preg_match('/id=([0-9]+)/', $this->getLocation(), $matches);
- $params['event_id'] = $matches[1];
+ $params['event_id'] = $this->urlArg('id');
return $params;
}