PMCORE-3377 An alert notice is displayed before creating a table

This commit is contained in:
Roly Gutierrez
2021-09-29 13:03:04 -04:00
parent 38f4bfb68f
commit 9886c0e141
2 changed files with 9 additions and 3 deletions

View File

@@ -785,6 +785,12 @@ class adminProxy extends HttpProxyController
$width = "100%";
$upload = new ReplacementLogo();
$aPhotoSelect = $upload->getNameLogo($_SESSION['USER_LOGGED']);
if (!is_array($aPhotoSelect)) {
$aPhotoSelect = [];
}
if (!isset($aPhotoSelect['DEFAULT_LOGO_NAME'])) {
$aPhotoSelect['DEFAULT_LOGO_NAME'] = '';
}
$sPhotoSelect = trim($aPhotoSelect['DEFAULT_LOGO_NAME']);
$check = '';
$ainfoSite = explode("/", $_SERVER["REQUEST_URI"]);

View File

@@ -94,10 +94,10 @@ class pmTables extends Controller
if ($table['ADD_TAB_TYPE'] == 'NORMAL' || $table['ADD_TAB_TYPE'] == 'GRID') {
$repTabPluginPermissions = $this->_getSimpleReportPluginDef();
}
}
if (preg_match("/^PMT_(.*)$/", $table['ADD_TAB_NAME'], $match)) {
$table['ADD_TAB_NAME'] = $match[1];
if (preg_match("/^PMT_(.*)$/", $table['ADD_TAB_NAME'], $match)) {
$table['ADD_TAB_NAME'] = $match[1];
}
}
$this->includeExtJS( 'pmTables/' . $jsFile );