diff --git a/src/generators/crud/default/views/view.php b/src/generators/crud/default/views/view.php index 45737a0..2e419b8 100644 --- a/src/generators/crud/default/views/view.php +++ b/src/generators/crud/default/views/view.php @@ -193,7 +193,7 @@ if ($generator->disablePluralization) { $pivotName = $name; } else { - $pivotName = Inflector::pluralize($modelName); + $pivotName = Inflector::pluralize($name); } $label = Inflector::camel2words($pivotName); $pivotRelation = $model->{'get' . $pivotName}(); @@ -264,7 +264,7 @@ echo "endBlock() ?>\n\n"; // build tab items - $itemLabel = $generator->generateString($label); + $itemLabel = $generator->generateString($name); $items .= << \$this->blocks['$name'],