Item14363: incorrect query formulation with form= parameter

pencil
Priority: Normal
Current State: Closed
Released In: n/a
Target Release:
Applies To: Extension
Component: JQDataTablesPlugin
Branches:
Reported By: BramVanOosterhout
Waiting For:
Last Change By: MichaelDaum
I believe there is a mistake in lib/Foswiki/Plugins/JQDataTablesPlugin/SearchConnector.pm

At line 111 the query is formulated as

form='formTitle'

The correct query is:

form.name='formTitle'

--- a/lib/Foswiki/Plugins/JQDataTablesPlugin/SearchConnector.pm
+++ b/lib/Foswiki/Plugins/JQDataTablesPlugin/SearchConnector.pm
@@ -108,7 +108,7 @@ sub buildQuery {
   $form =~ s/\//./g;
 
   my @query = ();
-  push @query, "form='$form'" if $form;
+  push @query, "form.name='$form'" if $form;
 
   my @columns = $this->getColumnsFromRequest($request);
With this change the following macro presents a result.

%DATATABLE{
  web="Applications"
  form="TopicFunction"
}%

-- BramVanOosterhout - 31 Mar 2017

 

ItemTemplate edit

Summary incorrect query formulation with form= parameter
ReportedBy BramVanOosterhout
Codebase 2.1.3
SVN Range
AppliesTo Extension
Component JQDataTablesPlugin
Priority Normal
CurrentState Closed
WaitingFor
Checkins
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
masterCheckins
ItemBranchCheckins
Release02x01Checkins
Release02x00Checkins
Release01x01Checkins
Topic revision: r2 - 30 Aug 2017, MichaelDaum
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy