HOR-4383 Import Pmtable in a new workspace

- Change type validation in load additional table by name.
This commit is contained in:
Marco Antonio Nina Mena
2018-02-28 15:52:18 -04:00
committed by Julio Cesar Laura Avendaño
parent 7384d2ef26
commit c414dfef7d
5 changed files with 19 additions and 11 deletions

View File

@@ -253,7 +253,7 @@ class Table
// validations
if ($createRep) {
if (is_array( $oAdditionalTables->loadByName( $tableName ) )) {
if ($oAdditionalTables->loadByName($tableName)) {
throw new \Exception(G::loadTranslation('ID_PMTABLE_ALREADY_EXISTS', array($tableName)));
}
}