Changeset 7402


Ignore:
Timestamp:
Sep 21, 2017, 10:47:05 AM (5 years ago)
Author:
Nicklas Nordborg
Message:

Fixes #2096: Incorrect settings when editing a synchronization filter for an item list

It seems like this was the only place were new Option() was called with 3 parameters. In all other places 4 parameters are used and code is expected to work.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.11-stable/www/views/itemlists/syncfilter/syncfilter.js

    r6840 r7402  
    9494      frm.sourceItemType.length = 0;
    9595      var listMemberType = Data.get('page-data', 'list-member-type');
    96       frm.sourceItemType[frm.sourceItemType.length] = new Option(listMemberType, listMemberType, true);
     96      frm.sourceItemType[frm.sourceItemType.length] = new Option(listMemberType, listMemberType, false, true);
    9797    }
    9898    else
     
    104104      {
    105105        var item = allowedItems[i];
    106         frm.sourceItemType[frm.sourceItemType.length] = new Option(item.title, item.name, item.name == sourceItemType);
     106        frm.sourceItemType[frm.sourceItemType.length] = new Option(item.title, item.name, false, item.name == sourceItemType);
    107107      }
    108108      Doc.show('parent-child-transform', 'inline');
Note: See TracChangeset for help on using the changeset viewer.