App-AutoCRUD
view release on metacpan or search on metacpan
lib/App/AutoCRUD/Controller/Table.pm view on Meta::CPAN
sub _mark_multicols_keys {
my ($self, $data) = @_;
if (my $sep = $self->datasource->schema->sql_abstract->multicols_sep) {
# in case of multi-columns keys, the form needs to add special fields
# and to ignore regular fields for those columns
my $where = $self->context->req_data->{where} || {};
my @multi_cols_keys = grep m[$sep], keys %$where;
$data->{multi_cols_keys} = \@multi_cols_keys;
$data->{ignore_col}{$_} = 1 foreach map {split m[$sep]} @multi_cols_keys;
}
}
1;
__END__
=head1 NAME
( run in 0.727 second using v1.01-cache-2.11-cpan-501a3233654 )