[BUGFIX] Fixed show not always called if using nested ressources.

This commit is contained in:
Simon Sessingø
2015-12-24 00:39:21 +01:00
parent 4c60055c7e
commit 69b0f4320e
+1 -1
View File
@@ -88,7 +88,7 @@ class RouterResource extends RouterEntry {
}
// Show
if($action && $this->postMethod === self::REQUEST_TYPE_GET) {
if(isset($parameters['id']) && $this->postMethod === self::REQUEST_TYPE_GET) {
return $this->call('show', $parameters);
}