Uploaded image for project: 'Ibexa IBX'
  1. Ibexa IBX
  2. IBX-2841

All twig live templates with ? after the shortcut are missing the "not"

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • N/A
    • 4.1.2
    • PHPStorm plugin
    • None

    Description

      Hello,

       

      With all the live templates given by the phpstorm plugin, when there's a "ibexa_field_is_empty" used, the "not" in the condition is missing.

      Ex :

      ezrf?

      gives

      {% if ibexa_field_is_empty(content, 'field_identifier') %}
      {{ ibexa_render_field(content, 'field_identifier') }}
      {% endif %}
       
      

       

      Which makes no sense, you don't render a field only if it's empty.

      Designs

        Attachments

          Activity

            People

              Unassigned Unassigned
              226e7832-b1ce-4661-b00c-53e24c1e2010@accounts.ibexa.co Julien SORRET
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: