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

Function isNotRichTextEmpty improvment

XMLWordPrintable

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

      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>
      

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

              Created:
              Updated:
              Resolved: