mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #2767 from HARVS1789UK/2766-moneyfield-set-readonly
BUG: #2766 Corrects MoneyField::performReadonlyTransformation()
This commit is contained in:
commit
55608d57f6
@ -120,6 +120,8 @@ class MoneyField extends FormField {
|
||||
*/
|
||||
public function performReadonlyTransformation() {
|
||||
$clone = clone $this;
|
||||
$clone->fieldAmount = $clone->fieldAmount->performReadonlyTransformation();
|
||||
$clone->fieldCurrency = $clone->fieldCurrency->performReadonlyTransformation();
|
||||
$clone->setReadonly(true);
|
||||
return $clone;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user