Skip to content

Commit

Permalink
Revert "re #305 Added sendEmail state."
Browse files Browse the repository at this point in the history
This reverts commit a91cf94.
  • Loading branch information
ercanozkaya committed Jan 17, 2018
1 parent 0f4701d commit a4186cf
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions code/libraries/koowa/components/com_koowa/model/users.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ public function __construct(KObjectConfig $config)

$this->getState()
->insert('email' , 'email', null, true)
->insert('username', 'alnum', null, true)
->insert('sendEmail', 'int');
->insert('username', 'alnum', null, true);
}

protected function _initialize(KObjectConfig $config)
Expand All @@ -34,15 +33,4 @@ protected function _initialize(KObjectConfig $config)

parent::_initialize($config);
}

protected function _buildQueryWhere(KDatabaseQueryInterface $query)
{
$state = $this->getState();

if (is_numeric($state->sendEmail)) {
$query->where('sendEmail = :sendEmail')->bind(array('sendEmail' => $state->sendEmail));
}

parent::_buildQueryWhere($query);
}
}

0 comments on commit a4186cf

Please sign in to comment.