Hi,
I use a MultiSelect to choose several values in an m:n relation.
Everything works as expected as long as I select one or more values.
But when I select nothing I get the following error:
0x800a138f - Laufzeitfehler in JavaScript: Die Eigenschaft "length" eines undefinierten oder Nullverweises kann nicht abgerufen werden.
The failing code is for(n=0,i=e.length;i>n;n++)o+=n%2?s(e[n]):a(e[n]),r._data.push(e[n]);return o}
This happens only when I add a new record.
If I edit an existing one it is possible to remove the formerly chosen element and update after this.
I initialize the field via model.Field(p => p.Salads).DefaultValue(new List<EECanteen.Models.FoodItem>());
To explain my problem - I want to edit meal offerings for a day and can choose from zero or more salads.