Problem with broken loop {{#each}} while saving PDF template

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • arturkulik
    Member
    • Apr 2025
    • 54

    #16
    Originally posted by yuri
    There was a bug particular with the OR operator. Fixed.

    Explicit steps to reproduce the behavior: 0 or 0 Printed. Expected behavior Not printed.

    me again

    solution is not working properly:

    1)
    if there is no [space] between 'or' and '(conditions ind brackets)

    espo gives 500

    <tr x-if="{{or(equal condition1)(equal condition2)(equal condition3)(equal condition4)}}" iterate="{{opportunitiesChildCascade}}">


    2)
    if there is [space] there is not 500 but no data in pdf:

    <tr x-if="{{or (equal condition1)(equal condition2)(equal condition3)(equal condition4)}}" iterate="{{opportunitiesChildCascade}}">


    3)
    if i use separaete iterations with singular condition everything works

    <tr x-if="{{equal condition1}}" iterate="{{opportunitiesChildCascade}}">......
    <tr x-if="{{equal condition2}}" iterate="{{opportunitiesChildCascade}}">......
    <tr x-if="{{equal condition3}}" iterate="{{opportunitiesChildCascade}}">......
    <tr x-if="{{equal condition4}}" iterate="{{opportunitiesChildCascade}}">......


    chacked on espo 9.1.8

    Comment

    Working...