From fb292dde3253d103c6822cbe843f19ddb7dc3d37 Mon Sep 17 00:00:00 2001 From: Julio Cesar Laura Date: Fri, 11 Jan 2013 14:41:01 -0400 Subject: [PATCH] BUG 10352 Simple report plugin does not show case status, and shows empty rows corresponding to draft cases that have been deleted SOLVED MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Se agrego la nueva columna solicitada APP_STATUS, para report tables ya creados no se mostrarĂ¡es necesario crearlos de nuevo para que aparezcan - Sobre el bug de las filas vacias, es el mismo problema que para el bug 10230, la BD del cliente tiene un problema de integridad, cuando uno borra el caso usando el Sistema (listado de casos en draft) borra todos los registros relacionados en todas las tablas asociadas, pero al hacer un borrado manual se olvidaron de elimar los datos de alguna de las tablas (posiblemente APP_CACHE_VIEW), por favor soliciten la BD del cliente y revisen la integridad de los datos. --- workflow/engine/controllers/pmTablesProxy.php | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/workflow/engine/controllers/pmTablesProxy.php b/workflow/engine/controllers/pmTablesProxy.php index 62d19d594..a28fe8fd8 100755 --- a/workflow/engine/controllers/pmTablesProxy.php +++ b/workflow/engine/controllers/pmTablesProxy.php @@ -1255,6 +1255,21 @@ class pmTablesProxy extends HttpProxyController $application->field_autoincrement = false; array_push( $defaultColumns, $application ); + $application = new stdClass(); //APP_STATUS + $application->uid = ''; + $application->field_dyn = ''; + $application->field_uid = ''; + $application->field_name = 'APP_STATUS'; + $application->field_label = 'APP_STATUS'; + $application->field_type = 'VARCHAR'; + $application->field_size = 10; + $application->field_dyn = ''; + $application->field_key = 0; + $application->field_null = 0; + $application->field_filter = false; + $application->field_autoincrement = false; + array_push( $defaultColumns, $application ); + //if it is a grid report table if ($type == 'GRID') { //GRID INDEX @@ -1401,7 +1416,7 @@ class pmTablesProxy extends HttpProxyController } } //end editing - + $indexes = array(); foreach ($fields as $i => $field) { $fields[$i]['_index'] = $i; $indexes[$field['FIELD_NAME']] = $i;