Remove old WebGUI::Utility isIn and replace with smart match.

This commit is contained in:
Colin Kuskie 2011-12-05 13:48:08 -08:00
parent d1f3d0771d
commit 398c3afdfd
2 changed files with 2 additions and 1 deletions

View file

@ -370,7 +370,7 @@ sub view {
push(@found, $child->getId); push(@found, $child->getId);
##Filter based on visibility ##Filter based on visibility
next CHILD unless $child->canView; next CHILD unless $child->canView;
next CHILD if isIn($asset, @hidden); next CHILD if $asset ~~ @hidden;
##Detect child types ##Detect child types
my $is_shortcut = $child->isa('WebGUI::Asset::Shortcut'); my $is_shortcut = $child->isa('WebGUI::Asset::Shortcut');
my $is_dashlet = $child->can('getOverrideFormDefinition'); my $is_dashlet = $child->can('getOverrideFormDefinition');

View file

@ -8,6 +8,7 @@ my $get_table = session->db->table_info('', '', '%', 'TABLE');
TABLE: while ( my $table = $get_table->fetchrow_hashref() ) { TABLE: while ( my $table = $get_table->fetchrow_hashref() ) {
next TABLE if $table->{TABLE_NAME} eq 'assetIndex'; next TABLE if $table->{TABLE_NAME} eq 'assetIndex';
session->db->write("ALTER TABLE ". dbh->quote_identifier($table->{TABLE_NAME}). " ENGINE=InnoDB"); session->db->write("ALTER TABLE ". dbh->quote_identifier($table->{TABLE_NAME}). " ENGINE=InnoDB");
session->log->warn($table->{TABLE_NAME});
} }