Skip to content

Commit

Permalink
API Update references to API which has been renamed
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Oct 2, 2024
1 parent dc43d36 commit a6f5f4e
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 12 deletions.
2 changes: 1 addition & 1 deletion code/Controllers/CMSMain.php
Original file line number Diff line number Diff line change
Expand Up @@ -2137,7 +2137,7 @@ public function BatchActionParameters()
$formHtml = '';
/** @var FormField $field */
foreach ($fieldList as $field) {
$formHtml .= $field->FieldHolder();
$formHtml .= $field->renderFieldHolder();
}
$forms[$urlSegment] = $formHtml;
}
Expand Down
5 changes: 0 additions & 5 deletions code/Forms/SiteTreeURLSegmentField.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,6 @@ public function getAttributes()
);
}

public function Field($properties = [])
{
return parent::Field($properties);
}

/**
* @param HTTPRequest $request
* @return string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<fieldset>
<% if $Legend %><legend>$Legend</legend><% end_if %>
<% loop $Fields %>
$FieldHolder
$renderFieldHolder
<% end_loop %>
<div class="clear"><!-- --></div>
</fieldset>
Expand All @@ -20,7 +20,7 @@
<% if $Actions %>
<div class="btn-toolbar">
<% loop $Actions %>
$FieldHolder
$renderFieldHolder
<% end_loop %>
<% if $Controller.LinkPreview %>
<a href="$Controller.LinkPreview" target="_cmsPreview" class="cms-preview-toggle-link ss-ui-button" data-icon="preview">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<fieldset>
<% if $Legend %><legend>$Legend</legend><% end_if %>
<% loop $Fields %>
$FieldHolder
$renderFieldHolder
<% end_loop %>
</fieldset>
</div>
Expand All @@ -35,7 +35,7 @@
<% if $Actions %>
<div class="btn-toolbar">
<% loop $Actions %>
$Field
$renderField
<% end_loop %>
</div>
<% end_if %>
Expand Down
4 changes: 2 additions & 2 deletions templates/SilverStripe/CMS/Search/Includes/SearchForm.ss
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
<% end_if %>
<fieldset>
<% loop $Fields %>
$FieldHolder
$renderFieldHolder
<% end_loop %>
<% loop $Actions %>
$Field
$renderField
<% end_loop %>
</fieldset>
</form>

0 comments on commit a6f5f4e

Please sign in to comment.