BUG 6594 Error "Column 'APP_TAS_TITLE' cannot be null" when... SOLVED
- The problem is fixed for this field of APP_CACHE_VIEW table - language combobox was removed from cases list cache builed in ADMIN, because the decided that appcacheview olny generate cache for english language -
This commit is contained in:
@@ -325,4 +325,21 @@ class Content extends BaseContent {
|
||||
}
|
||||
return $aRoles;
|
||||
}
|
||||
|
||||
/**
|
||||
* Verify the if content on teh current language exists for the base language 'english
|
||||
* if not copy for it.
|
||||
*
|
||||
* @autor Erik Amaru Ortiz <erik@colosa.com>
|
||||
* @param $category
|
||||
* @param $id
|
||||
* @param $value
|
||||
*/
|
||||
function copyContentOnBaseLanguageIfNotExists($category, $id, $value)
|
||||
{
|
||||
$con = ContentPeer::retrieveByPk($category, '', $id, 'en');
|
||||
if ($con === null) {
|
||||
Content::addContent($category, '', $id, 'en', $value);
|
||||
}
|
||||
}
|
||||
} // Content
|
||||
|
||||
Reference in New Issue
Block a user