mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Removing redundant function
At the moment form actions (buttons) have the classes 'action action' as default. This is because the extraClass function adds 'action' and then calls the parent method. The parent then includes the $this->Type() ('action') again. So I've remove this overloading of extraClass
This commit is contained in:
parent
0c6ac1960e
commit
b7e34bd54c
@ -121,10 +121,6 @@ class FormAction extends FormField {
|
||||
return $this->useButtonTag;
|
||||
}
|
||||
|
||||
public function extraClass() {
|
||||
return 'action ' . parent::extraClass();
|
||||
}
|
||||
|
||||
/**
|
||||
* Does not transform to readonly by purpose.
|
||||
* Globally disabled buttons would break the CMS.
|
||||
|
Loading…
Reference in New Issue
Block a user