PM-603 cases list con reprot tables eliminados SOLVED

- Cuando se borra un pmtable asociado a un cases list da un error por no encontrar los fields.
- cuando se borra la tabla se procede a poner en default la configuracion del cases list.
This commit is contained in:
Marco Antonio Nina
2014-10-15 14:30:33 -04:00
parent d26a2429df
commit a2266f2f41
3 changed files with 473 additions and 2 deletions

View File

@@ -23,6 +23,8 @@ $conf = new Configurations();
try {
// the setup for search is the same as the Sent (participated)
$confCasesList = $conf->getConfiguration( 'casesList', ($action == 'search' || $action == 'simple_search') ? 'search' : $action );
$table = AdditionalTables::load($confCasesList['PMTable']);
$confCasesList = ($table != null) ? $table : array ();
$generalConfCasesList = $conf->getConfiguration( 'ENVIRONMENT_SETTINGS', '' );
} catch (Exception $e) {
$confCasesList = array ();

View File

@@ -675,7 +675,7 @@ try {
switch ($xaction) {
case "FIELD_SET":
if (isset($confCasesList['second']['data'])) {
if (is_array($confCasesList) && isset($confCasesList['second']['data'])) {
foreach ($confCasesList['second']['data'] as $key => $value) {
$confCasesList['second']['data'][$key]['align_label'] = $confCasesList['second']['data'][$key]['align'];
}