mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-07-11 17:02:15 +00:00
[BUGFIX] Fixed show not always called if using nested ressources.
This commit is contained in:
@@ -88,7 +88,7 @@ class RouterResource extends RouterEntry {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Show
|
// Show
|
||||||
if($action && $this->postMethod === self::REQUEST_TYPE_GET) {
|
if(isset($parameters['id']) && $this->postMethod === self::REQUEST_TYPE_GET) {
|
||||||
return $this->call('show', $parameters);
|
return $this->call('show', $parameters);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user