Item14234: Clicking pencil for first row (erp_row=0) opens editor on entire table.
Priority: Normal
Current State: Closed
Released In: 2.1.4
Target Release: patch
--
GeorgeClark - 26 Nov 2016
This patch seems to resolve the issue:
diff --git a/EditRowPlugin/lib/Foswiki/Plugins/EditRowPlugin/Table.pm b/EditRowPlugin/lib/Foswiki/Plugins/EditRowPlugin/Table.pm
index 2d6629e..daed50a 100644
--- a/EditRowPlugin/lib/Foswiki/Plugins/EditRowPlugin/Table.pm
+++ b/EditRowPlugin/lib/Foswiki/Plugins/EditRowPlugin/Table.pm
@@ -177,7 +177,7 @@ sub render {
my $editing = ( $opts->{for_edit} && $this->can_edit() );
my $wholeTable =
- ( defined $opts->{active_row} && $opts->{active_row} <= 0 );
+ ( defined $opts->{active_row} && $opts->{active_row} < 0 );
my $id = $this->getID();
push( @out, Foswiki::Render::html( 'a', { name => "erp_${id}" } ) )
--
GeorgeClark - 07 May 2017