mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00: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() {
|
public function performReadonlyTransformation() {
|
||||||
$clone = clone $this;
|
$clone = clone $this;
|
||||||
|
$clone->fieldAmount = $clone->fieldAmount->performReadonlyTransformation();
|
||||||
|
$clone->fieldCurrency = $clone->fieldCurrency->performReadonlyTransformation();
|
||||||
$clone->setReadonly(true);
|
$clone->setReadonly(true);
|
||||||
return $clone;
|
return $clone;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user