| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | public function getCMSFields() |
||
| 22 | { |
||
| 23 | $this->beforeUpdateCMSFields(function (FieldList $fields) { |
||
| 24 | $fields->removeByName('DMSDocumentCartSubmissionID'); |
||
| 25 | |||
| 26 | $fields->addFieldToTab( |
||
| 27 | 'Root.Main', |
||
| 28 | $fields->fieldByName('Root.Main.OriginalID') |
||
| 29 | ->performReadonlyTransformation() |
||
| 30 | ->setDescription(_t( |
||
| 31 | 'DMSDocumentCartSubmissionItem.ORIGINALIDHELPTIP', |
||
| 32 | 'Note: The original document may have been modified or removed since this request was made.' |
||
| 33 | )), |
||
| 34 | 'Title' |
||
| 35 | ); |
||
| 36 | }); |
||
| 37 | return parent::getCMSFields(); |
||
| 38 | } |
||
| 39 | } |
||
| 40 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.