Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
28 | public function updateCMSFields(FieldList $fields) |
||
29 | { |
||
30 | $fields->removeByName("OrderDate"); |
||
31 | $fields->removeByName("OrderDateInteger"); |
||
32 | $fields->removeByName("RepeatOrderID"); |
||
33 | if ($this->owner->RepeatOrderID) { |
||
|
|||
34 | $fields->addFieldToTab("Root.RepeatOrder", ReadonlyField::create("OrderDate", "Planned Next Order Date - based on repeating order schedule")); |
||
35 | $fields->addFieldToTab("Root.RepeatOrder", ReadonlyField::create("RepeatOrderID", "Created as part of Repeat Order #")); |
||
36 | } |
||
37 | } |
||
38 | |||
52 |
An attempt at access to an undefined property has been detected. This may either be a typographical error or the property has been renamed but there are still references to its old name.
If you really want to allow access to undefined properties, you can define magic methods to allow access. See the php core documentation on Overloading.