Fixed DSL traffic fetch to work with KH 3.1
This commit is contained in:
@@ -24,7 +24,6 @@ class Model_Service_ADSL extends Model_Service {
|
||||
'service_connect_date'=>array(
|
||||
array('Config::date',array(':value')),
|
||||
),
|
||||
|
||||
);
|
||||
|
||||
/**
|
||||
|
@@ -13,11 +13,16 @@
|
||||
class Model_Service_ADSL_Traffic extends ORMOSB {
|
||||
protected $_table_name = 'service__adsl_traffic';
|
||||
protected $_primary_key = 'service';
|
||||
protected $_callbacks = array(
|
||||
'site_id'=>array('set_site_id'),
|
||||
);
|
||||
|
||||
protected $_created_column = FALSE;
|
||||
protected $_updated_column = FALSE;
|
||||
|
||||
public function rules() {
|
||||
return array(
|
||||
'site_id'=>array(
|
||||
array('ORMOSB::set_site_id',array(':validation',':model',':field')),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
Reference in New Issue
Block a user