Item11974: WysiwygFormFieldPlugin populates field values with a default linefeed making testing for empty fields interesting.

pencil
Priority: Urgent
Current State: Closed
Released In: n/a
Target Release: n/a
Applies To: Extension
Component: WysiwygFormfieldPlugin
Branches: trunk
Reported By: PaulAlexander
Waiting For:
Last Change By: SvenDowideit
Firstly, this is a great Plugin.

In the past I have only displayed form fields that were populated with data but now each textarea has a default linefeed %0d%0a.

%SEARCH{
      "FM_Taxon = '%BASEWEB%.%BASETOPIC%'"
      nonoise="on"
      web="FungiMap/Descriptlets"
      type="query"
      separator=","
      format="$percentQUERY{'$web.$topic'/fields[value!='' AND NOT lc(attributes)=~'h'].name}$percent"
}%

This may also effect FlexFormPlugin RENDERFORDISPLAY

%RENDERFORDISPLAY{
   "FungiMap/Descriptlets/2"
   hideempty="on"
}%

-- PaulAlexander - 27 Jun 2012

ouch. Thats a big important bug. I'll look at that asap - thanks for the report smile

-- SvenDowideit - 27 Jun 2012

ok, fixed, but I need to look at unit tests.

-- SvenDowideit - 29 Jun 2012

 

ItemTemplate edit

Summary WysiwygFormFieldPlugin populates field values with a default linefeed making testing for empty fields interesting.
ReportedBy PaulAlexander
Codebase trunk
SVN Range
AppliesTo Extension
Component WysiwygFormfieldPlugin
Priority Urgent
CurrentState Closed
WaitingFor
Checkins WysiwygFormfieldPlugin:8cc03a6a7bb4
TargetRelease n/a
ReleasedIn n/a
CheckinsOnBranches trunk
trunkCheckins WysiwygFormfieldPlugin:8cc03a6a7bb4
Release01x01Checkins
Topic revision: r5 - 26 Sep 2012, SvenDowideit
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