Index: trunk/kernel/admin/include/summary/root.php =================================================================== diff -u -N -r23 -r1715 --- trunk/kernel/admin/include/summary/root.php (.../root.php) (revision 23) +++ trunk/kernel/admin/include/summary/root.php (.../root.php) (revision 1715) @@ -90,9 +90,13 @@ $pending_col_2 = ''; foreach($pending_source as $module_name => $pending_items) +{ foreach($pending_items as $p_item) + { $all_pending[] = $p_item; - + } +} + if( count($all_pending) % 2 ) $all_pending[] = 'empty'; $ItemCount = count($all_pending); @@ -130,7 +134,23 @@ function PendingCell($params, $class, &$pending_count) { - $pending_count = $GLOBALS[ $params['list_var_name'] ]->CountPending(); + $list_name = getArrayValue($params, 'list_var_name'); + + $prefix_pos = strpos($list_name, ':'); + if( $prefix_pos !== false) + { + global $application; + $prefix = substr($list_name, $prefix_pos+1, strlen($list_name) ); + $table =& $application->getUnitOption($prefix, 'TableName'); + $sql = 'SELECT COUNT(*) FROM %s WHERE Status = 2'; + + $pending_count = $application->DB->GetOne( sprintf($sql, $table) ); + } + else + { + $pending_count = $GLOBALS[ $params['list_var_name'] ]->CountPending(); + } + $o = ''."\n"; $o .= ''."\n"; $o .= ''."\n";