Maintain key integrity. Fixes #1969

This commit is contained in:
Samuel Georges 2016-05-04 19:20:41 +10:00
parent f33c3519c9
commit a180e37b1d
1 changed files with 2 additions and 2 deletions

View File

@ -37,10 +37,10 @@ trait SelectableWidget
protected function extendSelection()
{
$items = Input::get($this->selectionInputName, []);
$items = (array) Input::get($this->selectionInputName, []);
$currentSelection = $this->getSelectedItems();
$this->putSession('selected', array_merge($currentSelection, $items));
$this->putSession('selected', $currentSelection + $items);
}
protected function resetSelection()