U4-11085 - Dialogoptions.filter has a bug when using '!' to exclude

Created by Nathalie Larsson 11 Mar 2018, 20:05:24 Updated by Sebastiaan Janssen 26 Aug 2018, 18:48:29

Tags: PR

Is duplicated by: U4-10129

'''What did you do?''' Set "Allow items of type": !people on a MNTP

'''What did you expect to happen?''' MNTP should always exclude 'people' in the picker dialogOptions.filterExclude = true; dialogOptions.filter = '!people'

'''What actually happened?''' It works the first time the dialog is open, but if you close the dialog and then opens it again without refresh the site the value of dialogOptions.filter is now 'people' instead of '!people' and dialogOptions.filterExclude is false. The actual value gets sub stringed and is still sub stringed second time around.

Should be: dialogOptions.filterExclude = true; dialogOptions.filter = '!people'

Is (second time) dialogOptions.filterExclude = false; dialogOptions.filter = 'people'

Comments

Nathalie Larsson 11 Mar 2018, 20:11:28

https://github.com/umbraco/Umbraco-CMS/pull/2512


Priority: Normal

Type: Bug

State: Fixed

Assignee:

Difficulty: Normal

Category:

Backwards Compatible: True

Fix Submitted: Pull request

Affected versions: 7.12.1

Due in version: 7.13.0

Sprint:

Story Points:

Cycle: