| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 35 | public function getCMSFields() |
||
| 36 | { |
||
| 37 | $fields = parent::getCMSFields(); |
||
| 38 | |||
| 39 | // remove it and, if needed re-add it as a hidden field |
||
| 40 | $fields->removeByName('SubsiteID'); |
||
| 41 | if (class_exists('Subsite')) { |
||
| 42 | $fields->push(new HiddenField('SubsiteID', 'SubsiteID', Subsite::currentSubsiteID())); |
||
| 43 | } |
||
| 44 | |||
| 45 | return $fields; |
||
| 46 | } |
||
| 47 | } |
||
| 48 |