Skip to content

Commit

Permalink
Bump and add a provisional fix for issue #16
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeavon committed Sep 12, 2016
1 parent 3c1726f commit 675db47
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -218,10 +218,17 @@ public bool IsMultipleDataType(int dataTypeId)

var dts = ApplicationContext.Current.Services.DataTypeService;

var multiPickerPreValue =
dts.GetPreValuesCollectionByDataTypeId(dataTypeId)
.PreValuesAsDictionary.FirstOrDefault(
x => string.Equals(x.Key, "multiPicker", StringComparison.InvariantCultureIgnoreCase)).Value;
var multiPickerPreValueDictionary = dts.GetPreValuesCollectionByDataTypeId(dataTypeId)
.PreValuesAsDictionary.FirstOrDefault(
x => string.Equals(x.Key, "multiPicker", StringComparison.InvariantCultureIgnoreCase));

// if no prevalue returned, assume multiple as this is the "multiple" media picker, sorry Marc...
if (multiPickerPreValueDictionary.Equals(default(KeyValuePair<string, PreValue>)))
{
return true;
}

var multiPickerPreValue = multiPickerPreValueDictionary.Value;

var multipleItems = false;

Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
os: Visual Studio 2015

# version format
version: 3.1.0.{build}
version: 3.1.1.{build}

cache:
- packages -> **\packages.config # preserve "packages" directory in the root of build folder but will reset it if packages.config is modified
Expand Down

0 comments on commit 675db47

Please sign in to comment.