First step complete

This commit is contained in:
Jonathan Labreuille
2015-09-30 15:56:13 +02:00
parent 2e3b565e8a
commit 45dccf6c50
5 changed files with 48 additions and 15 deletions

View File

@@ -8,13 +8,6 @@ class Newsletter extends Model {
function __construct() {
parent::__construct();
$this->addValidations('subject', array(
'required' => __('You need to specify a subject.')
));
$this->addValidations('body', array(
'required' => __('Newsletter cannot be empty.')
));
}
static function search($orm, $search = '') {