$this->set('campaignStatus', $campaignStatus);
$this->assign('campaignStatus', json_encode($campaignStatus));
+ //active campaigns
+ $this->addElement('select', 'is_active', ts('Is Actief?'), array(
+ '' => ts('- select -'),
+ '0' => ts('Yes'),
+ '1' => ts('No'),
+ )
+ );
+
//build the array of all search params.
$this->_searchParams = array();
foreach ($this->_elements as $element) {
$params = $searchRows = array();
foreach ($searchParams as $param) {
- if (!empty($_POST[$param])) {
+ if (isset($_POST[$param])) {
$params[$param] = $_POST[$param];
}
}