Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-7520 Minilang code readability and consistency improvements
  3. OFBIZ-8445

OFBIZ-7520: Consistency and Readability improvements for if-compare tag

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 16.11.01
    • Fix Version/s: None
    • Component/s: ALL COMPONENTS
    • Labels:
      None

      Description

      Code written in Minilang for the if-compare tag is not consistent throughout the application. The correct pattern to write is
      <if-compare field="containsEmptyFields" operator="equals" value="true"/>

      I found various other ways in which this tag is written, like

      <if-compare operator="equals" field="hasPermission" value="true" type="Boolean">

      <if-compare value="true" field="isDisbursement" operator="equals" type="Boolean">

        Attachments

        1. OFBIZ-8445.patch
          47 kB
          Devanshu Vyas

          Activity

            People

            • Assignee:
              diveshdut Divesh Dutta
              Reporter:
              devanshu.vyas Devanshu Vyas
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: