Optimised Company() Setup() Config() and changed method_directory into URL
This commit is contained in:
@@ -25,7 +25,7 @@ class Model_Record_Id extends ORM_OSB {
|
||||
|
||||
$max = DB::select(array('MAX(id)','id'))
|
||||
->from($mo->name)
|
||||
->where('site_id','=',Config::siteid());
|
||||
->where('site_id','=',Company::instance()->site());
|
||||
|
||||
$this->id = $max->execute()->get('id');
|
||||
}
|
||||
|
Reference in New Issue
Block a user