#160 Views not created with the user defined prefix

SVN:trunk[619]
This commit is contained in:
Romain Quetiez
2010-07-21 13:18:59 +00:00
parent ef91a2e0db
commit 6fc2b4127b

View File

@@ -403,6 +403,11 @@ abstract class MetaModel
return self::DBGetTable(self::$m_aAttribOrigins[$sClass][$sAttCode]);
}
final static public function DBGetView($sClass)
{
return self::$m_sTablePrefix."_view_".$sClass;
}
final static protected function DBEnumTables()
{
// This API do not rely on our capability to query the DB and retrieve
@@ -2651,7 +2656,7 @@ abstract class MetaModel
//
foreach (self::GetClasses('bizmodel') as $sClass)
{
$sView = "view_$sClass";
$sView = self::DBGetView($sClass);
if (CMDBSource::IsTable($sView))
{
// Check that the view is complete