Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

API CHANGE Marked Form::unsetFieldFromTab() as deprecated. Please use

Fields() and the FieldList API instead.
  • Loading branch information...
commit 7fe0858be1d9c3ce737fe18e1843202bf3452136 1 parent 0b7af1a
@halkyon halkyon authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 forms/Form.php
View
4 forms/Form.php
@@ -672,8 +672,12 @@ public function unsetDataFieldByName($fieldName){
/**
* Remove a field from the given tab.
+ *
+ * @deprecated 3.0 Use Fields() and FieldList API instead
*/
public function unsetFieldFromTab($tabName, $fieldName) {
+ Deprecation::notice('3.0', 'Use Fields() and FieldList API instead');
+
// Find the tab
$tab = $this->Fields()->findOrMakeTab($tabName);
$tab->removeByName($fieldName);
Please sign in to comment.
Something went wrong with that request. Please try again.