Work on Email and other major consistency work
This commit is contained in:
@@ -40,6 +40,8 @@ class Model_Account extends Model_Auth_UserDefault {
|
||||
),
|
||||
);
|
||||
|
||||
protected $_save_message = TRUE;
|
||||
|
||||
/**
|
||||
* Our account number format
|
||||
*/
|
||||
|
@@ -22,8 +22,18 @@ class Model_Setup extends ORM_OSB {
|
||||
'language'=>array('foreign_key'=>'id','far_key'=>'language_id'),
|
||||
);
|
||||
|
||||
protected $_save_message = TRUE;
|
||||
|
||||
// Validation rules
|
||||
public function rules() {
|
||||
$r = parent::rules();
|
||||
$r = Arr::merge(parent::rules(), array(
|
||||
'url' => array(
|
||||
array('not_empty'),
|
||||
array('min_length', array(':value', 8)),
|
||||
array('max_length', array(':value', 127)),
|
||||
array('url'),
|
||||
),
|
||||
));
|
||||
|
||||
// This module doesnt use site_id.
|
||||
unset($r['site_id']);
|
||||
|
Reference in New Issue
Block a user