Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-3311

Allow to sort widget dropdowns on items descriptions

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Implemented
    • Trunk
    • 16.11.01
    • ALL APPLICATIONS
    • None
    • Bug Crush Event - 21/2/2015, Community Day 1 - 2016

    Description

      This would be mostly useful for other languages than English, but not only I guess.

      I thought 1st to add an entity-order-by-description attribute to entity-options. But in order to make this change easier I suggest rather to enhance the entity-order-by attribute with a special keyword (say description) wich will be used in place of a field-name and used in

      1. EntityOptions constructor to bypass the entity-order-by block.
      2. And then used in EntityOptions.addOptionValues() to sort entities on their descriptions.
      3. If no description is provided for an entity it will be put at end.

      Just a proposition at this stage, there are maybe better way.

      Attachments

        1. OFBIZ-3311.patch
          9 kB
          Nicolas Malin
        2. OFBIZ-3311.patch
          5 kB
          Nicolas Malin
        3. OFBIZ-3311-1307.patch
          8 kB
          Nicolas Malin

        Activity

          People

            nmalin Nicolas Malin
            jleroux Jacques Le Roux
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: