mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-03 22:58:24 +02:00
Fix misleading documentation about Children.max
Currently, the documentation implies that doing a `Children.max(LastEdited)` will work, which isn't the case. This change uses `AllChildren.max(LastEdited)` instead, which while slightly more inefficient, will actually work consistently.
This commit is contained in:
parent
541436feb0
commit
6e47a25098
@ -227,7 +227,7 @@ Can be re-written as:
|
||||
:::ss
|
||||
<% cached LastEdited %>
|
||||
|
||||
<% cached Children.max(LastEdited) %>
|
||||
<% cached AllChildren.max(LastEdited) %>
|
||||
<% loop $Children %>
|
||||
$Name
|
||||
<% end_loop %>
|
||||
|
Loading…
Reference in New Issue
Block a user