Skip to content

Commit

Permalink
fix to ensure empty json / xml collections return null
Browse files Browse the repository at this point in the history
  • Loading branch information
Hendy committed May 26, 2014
1 parent 1e4853c commit e7fbe31
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ angular.module('umbraco.resources')
// returns a string representation of the picked options as per the configured SaveFormat
createSaveValue: function (config, pickedOptions) {

if (pickedOptions == null || pickedOptions.length == 0) {
return null;
}

switch (config.saveFormat) {

case 'csv': // "key, key..."
Expand Down

0 comments on commit e7fbe31

Please sign in to comment.