diff --git a/workflow/engine/controllers/pmTablesProxy.php b/workflow/engine/controllers/pmTablesProxy.php index 9199e3452..23534a912 100755 --- a/workflow/engine/controllers/pmTablesProxy.php +++ b/workflow/engine/controllers/pmTablesProxy.php @@ -1139,11 +1139,13 @@ class pmTablesProxy extends HttpProxyController $aErrors[$count]['IS_PMTABLE'] = $isPmTable; $aErrors[$count]['PRO_UID'] = $tableProUid; } else { - $aErrors[$count]['NAME_TABLE'] = $contentSchema['ADD_TAB_NAME']; - $aErrors[$count]['ERROR_TYPE'] = ERROR_RP_TABLES_OVERWRITE; - $aErrors[$count]['ERROR_MESS'] = G::loadTranslation('ID_OVERWRITE_RPTABLE', array($contentSchema['ADD_TAB_NAME'])); - $aErrors[$count]['IS_PMTABLE'] = $isPmTable; - $aErrors[$count]['PRO_UID'] = $tableProUid; + if ($tableExists) { + $aErrors[$count]['NAME_TABLE'] = $contentSchema['ADD_TAB_NAME']; + $aErrors[$count]['ERROR_TYPE'] = ERROR_RP_TABLES_OVERWRITE; + $aErrors[$count]['ERROR_MESS'] = G::loadTranslation('ID_OVERWRITE_RPTABLE', array($contentSchema['ADD_TAB_NAME'])); + $aErrors[$count]['IS_PMTABLE'] = $isPmTable; + $aErrors[$count]['PRO_UID'] = $tableProUid; + } } } } else {