fixed data ocorrencia verification

git-svn-id: https://svn.coded.pt/svn/SIPRP@1769 bb69d46d-e84e-40c8-a05a-06db0d633741
lxbfYeaa
Frederico Palma 14 years ago
parent d8798b33ef
commit a814e24557

@ -269,13 +269,14 @@ public class Estatistica extends AbstractPageBean {
ex.printStackTrace(); ex.printStackTrace();
return; return;
} }
Option[] options = new Option[ estabelecimentos.size() > 1 ? estabelecimentos.size() + 1 : 1 ]; // Option[] options = new Option[ estabelecimentos.size() > 1 ? estabelecimentos.size() + 1 : 1 ];
Option[] options = new Option[ estabelecimentos.size() ];
int off = 0; int off = 0;
if( options.length > 1 ) // if( options.length > 1 )
{ // {
options[ 0 ] = new Option( null, "Todos" ); // options[ 0 ] = new Option( null, "Todos" );
off = 1; // off = 1;
} // }
for( int i = 0; i + off < options.length; i++ ) for( int i = 0; i + off < options.length; i++ )
{ {
options[ i + off ] = new Option( estabelecimentos.get( i ).getID(), ( String ) estabelecimentos.get( i ).getValue() ); options[ i + off ] = new Option( estabelecimentos.get( i ).getID(), ( String ) estabelecimentos.get( i ).getValue() );

Loading…
Cancel
Save