From: <de...@de...> - 2015-07-03 04:54:43
|
Author: HideyoImazu Date: 2015-07-03 04:53:16 +0000 (Fri, 03 Jul 2015) New Revision: 29389 Trac url: http://develop.twiki.org/trac/changeset/29389 Modified: twiki/trunk/DataTablePlugin/lib/TWiki/Plugins/DataTablePlugin.pm Log: Item7671: Creating DataTablePlugin Modified: twiki/trunk/DataTablePlugin/lib/TWiki/Plugins/DataTablePlugin.pm =================================================================== --- twiki/trunk/DataTablePlugin/lib/TWiki/Plugins/DataTablePlugin.pm 2015-07-03 01:32:49 UTC (rev 29388) +++ twiki/trunk/DataTablePlugin/lib/TWiki/Plugins/DataTablePlugin.pm 2015-07-03 04:53:16 UTC (rev 29389) @@ -255,7 +255,8 @@ @rowNums = @allRowNums; } return scalar(@rowNums) if ( $showNRows ); - if ( my $sortCol = $params->{sort} || $params->{sorta} ) { + my $sortCol; + if ( $sortCol = $params->{sort} || $params->{sorta} ) { if ( $tbl->{cols}{$sortCol} ) { my %sortKey; for my $i ( @rowNums ) { @@ -268,7 +269,7 @@ @rowNums = sort { $sortKey{$a} cmp $sortKey{$b} } @rowNums; } } - elsif ( my $sortCol = $params->{sortn} ) { + elsif ( $sortCol = $params->{sortn} ) { if ( $tbl->{cols}{$sortCol} ) { my %sortKey; for my $i ( @rowNums ) { |