Commit 24b3d1c2 authored by Christopher Stebe's avatar Christopher Stebe

fixed `crud/default/view` template, create new related record link param

parent 8eb4f2e2
Pipeline #12555 failed with stages
in 3 minutes and 8 seconds
Changelog
=========
### 0.8.4
* fixed `crud/default/view` template, create new related record link param
### 0.8.3
* fixed `$actionColumnTemplateString` in crud default view index.php
......
......@@ -178,7 +178,7 @@ EOS;
'<span class=\"glyphicon glyphicon-plus\"></span> ' . ".$generator->generateString('New')." . ' ".
Inflector::singularize(Inflector::camel2words($name))."',
['".$generator->createRelationRoute($relation, 'create')."', '".
Inflector::singularize($name)."' => ['".key($relation->link)."' => \$model->".$model->primaryKey()[0]."]],
Inflector::id2camel($generator->generateRelationTo($relation), '-', true)."' => ['".key($relation->link)."' => \$model->".$model->primaryKey()[0]."]],
['class'=>'btn btn-success btn-xs']
); ?>\n";
echo $addButton;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment