Fix path for `segment_label` in Products & Variations schema
This commit is contained in:
parent
fbd377b2ec
commit
d35e8f3c46
|
@ -173,7 +173,7 @@ class Controller extends GenericStatsController {
|
|||
);
|
||||
|
||||
$schema['properties']['totals']['properties']['segments']['items']['properties']['segment_label'] = $segment_label;
|
||||
$schema['properties']['intervals']['items']['properties']['subtotals']['properties'] = $segment_label;
|
||||
$schema['properties']['intervals']['items']['properties']['subtotals']['properties']['segments']['items']['properties']['segment_label'] = $segment_label;
|
||||
|
||||
return $this->add_additional_fields_schema( $schema );
|
||||
}
|
||||
|
|
|
@ -177,7 +177,7 @@ class Controller extends GenericStatsController {
|
|||
);
|
||||
|
||||
$schema['properties']['totals']['properties']['segments']['items']['properties']['segment_label'] = $segment_label;
|
||||
$schema['properties']['intervals']['items']['properties']['subtotals']['properties'] = $segment_label;
|
||||
$schema['properties']['intervals']['items']['properties']['subtotals']['properties']['segments']['items']['properties']['segment_label'] = $segment_label;
|
||||
|
||||
return $this->add_additional_fields_schema( $schema );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue