diff --git a/classes/Kohana/Jam/Form/Tart/General.php b/classes/Kohana/Jam/Form/Tart/General.php index 2f5cbf9..a7ce32f 100644 --- a/classes/Kohana/Jam/Form/Tart/General.php +++ b/classes/Kohana/Jam/Form/Tart/General.php @@ -351,7 +351,15 @@ public function remoteselect($name, array $options = array(), array $attributes $h('span', array('id' => $options['container'], 'class' => 'remoteselect-container'), function($h, $self) use ($current, $model, $options) { if ($current) { - $h->add(Request::factory(strtr($options['url'], array('{{model}}' => $model, '{{id}}' => Jam_Form::list_id($current))))->execute()); + $url = strtr($options['url'], array('{{model}}' => $model, '{{id}}' => Jam_Form::list_id($current))); + $split_uri = explode('?', $url); + $uri = array_shift($split_uri); + $query = []; + if ($split_uri) + { + parse_str($split_uri[0], $query); + } + $h->add(Request::factory($uri)->query($query)->execute()); } });