Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-5564

Function isNotRichTextEmpty improvment

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.5.4
    • 3.4.7, 3.5.5, 3.7, 3.9
    • None
    • None

    Description

      the function

      <func:function name="cms:isNotRichTextEmpty">
              <xsl:param name="meta"/>
              <func:result select="$meta/docbook:article and not(normalize-space($meta/docbook:article/docbook:para) = '&#160;' and count($meta/docbook:article/*) = 1 and not($meta/docbook:article/*))"/>
          </func:function>
      

      returns true if meta contains one empy article node

      It should be:

      <func:function name="cms:isNotRichTextEmpty">
              <xsl:param name="meta"/>
              <func:result select="$meta/docbook:article and $meta/docbook:article/* and not(normalize-space($meta/docbook:article/docbook:para) = '&#160;' and count($meta/docbook:article/*) = 1 and not($meta/docbook:article/*))"/>
          </func:function>
      

      Attachments

        Activity

          People

            trizzi Thibaut Rizzi (Inactive)
            ogehin Olivier Gehin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: