Updated for new lnApp
This commit is contained in:
@@ -37,6 +37,13 @@ class Model_Product extends ORM_OSB implements Invoicable {
|
||||
|
||||
protected $_form = array('id'=>'id','value'=>'description()');
|
||||
|
||||
protected $_compress_column = array(
|
||||
'avail_category',
|
||||
'group_avail',
|
||||
'price_group',
|
||||
'prod_plugin_data',
|
||||
);
|
||||
|
||||
protected $_nullifempty = array(
|
||||
'price_group',
|
||||
);
|
||||
@@ -207,7 +214,7 @@ class Model_Product extends ORM_OSB implements Invoicable {
|
||||
}
|
||||
|
||||
private function translate() {
|
||||
return $this->translate->where('language_id','=',Config::language())->find();
|
||||
return $this->translate->where('language_id','=',Company::instance()->language())->find();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user