Fix path for `segment_label` in Products & Variations schema
This commit is contained in:
parent
fbd377b2ec
commit
d35e8f3c46
|
@ -172,8 +172,8 @@ class Controller extends GenericStatsController {
|
||||||
'enum' => array( 'day', 'week', 'month', 'year' ),
|
'enum' => array( 'day', 'week', 'month', 'year' ),
|
||||||
);
|
);
|
||||||
|
|
||||||
$schema['properties']['totals']['properties']['segments']['items']['properties']['segment_label'] = $segment_label;
|
$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 );
|
return $this->add_additional_fields_schema( $schema );
|
||||||
}
|
}
|
||||||
|
|
|
@ -176,8 +176,8 @@ class Controller extends GenericStatsController {
|
||||||
'enum' => array( 'day', 'week', 'month', 'year' ),
|
'enum' => array( 'day', 'week', 'month', 'year' ),
|
||||||
);
|
);
|
||||||
|
|
||||||
$schema['properties']['totals']['properties']['segments']['items']['properties']['segment_label'] = $segment_label;
|
$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 );
|
return $this->add_additional_fields_schema( $schema );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue