@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | */ |
70 | 70 | public function getCMSFields() |
71 | 71 | { |
72 | - $this->beforeUpdateCMSFields(function (FieldList $fields) { |
|
72 | + $this->beforeUpdateCMSFields(function(FieldList $fields) { |
|
73 | 73 | if (FoxyStripeSetting::current_foxystripe_setting()->MultiGroup) { |
74 | 74 | $config = GridFieldConfig_RelationEditor::create(); |
75 | 75 | $config->addComponent(new GridFieldOrderableRows('SortOrder')); |
@@ -150,8 +150,8 @@ discard block |
||
150 | 150 | |
151 | 151 | if ($config->MultiGroup) { |
152 | 152 | $entries = $this->Products()->sort('SortOrder'); |
153 | - } else { |
|
154 | - $filter = '"ParentID" = ' . $this->ID; |
|
153 | + }else { |
|
154 | + $filter = '"ParentID" = '.$this->ID; |
|
155 | 155 | |
156 | 156 | // Build a list of all IDs for ProductGroups that are children |
157 | 157 | $holderIDs = $this->ProductGroupIDs(); |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | if ($filter) { |
163 | 163 | $filter .= ' OR '; |
164 | 164 | } |
165 | - $filter .= '"ParentID" IN (' . implode(',', $holderIDs) . ')'; |
|
165 | + $filter .= '"ParentID" IN ('.implode(',', $holderIDs).')'; |
|
166 | 166 | } |
167 | 167 | |
168 | 168 | $order = '"SiteTree"."Title" ASC'; |