Skip to content
This repository was archived by the owner on Jan 3, 2024. It is now read-only.

Commit 33bd215

Browse files
author
David Yell
committed
Remove the limit on list type finds in view and edit controller actions
1 parent c1aef51 commit 33bd215

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Template/Bake/Element/Controller/add.ctp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ $compact = ["'" . $singularName . "'"];
4242
$otherName = $association->target()->alias();
4343
$otherPlural = $this->_variableName($otherName);
4444
%>
45-
$<%= $otherPlural %> = $this-><%= $currentModelName %>-><%= $otherName %>->find('list', ['limit' => 200]);
45+
$<%= $otherPlural %> = $this-><%= $currentModelName %>-><%= $otherName %>->find('list');
4646
<%
4747
$compact[] = "'$otherPlural'";
4848
endforeach;

src/Template/Bake/Element/Controller/edit.ctp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ $compact = ["'" . $singularName . "'"];
4545
$otherName = $association->target()->alias();
4646
$otherPlural = $this->_variableName($otherName);
4747
%>
48-
$<%= $otherPlural %> = $this-><%= $currentModelName %>-><%= $otherName %>->find('list', ['limit' => 200]);
48+
$<%= $otherPlural %> = $this-><%= $currentModelName %>-><%= $otherName %>->find('list');
4949
<%
5050
$compact[] = "'$otherPlural'";
5151
endforeach;

0 commit comments

Comments
 (0)