redo pull request #627 with backwards compatibility
This commit is contained in:
1 parent
895115187e
commit
d2910a7a97
2 files changed
+26
-1
No files matched your search
+7
-1
@@ -1201,7 +1201,13 @@ class FormBuilder
|
||||
protected function getRouteAction($options)
|
||||
{
|
||||
if (is_array($options)) {
|
||||
return $this->url->route($options[0], head(array_slice($options, 1)));
|
||||
$parameters = array_slice($options, 1);
|
||||
|
||||
if (array_keys($options) === [0, 1]) {
|
||||
$parameters = head($parameters);
|
||||
}
|
||||
|
||||
return $this->url->route($options[0], $parameters);
|
||||
}
|
||||
|
||||
return $this->url->route($options);
|
||||
|
||||
Reference in new issue
Block a user