Details
-
Type:
Bug
-
Status: Done/Fixed
-
Priority:
Trivial
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.4.3
-
Fix Version/s: 4.4.4
-
Component/s: None
-
Labels:None
Description
The report_template.getrows api does not currently return sufficient information to render as a chart as it doesn't return labels & title.
Since these are only calculated by rendering the entire report it doesn't make sense to have a separate function for this.
Format is to return them at the top level 'paralell' to 'values' per suggestion from Nicolas / Frank
Attachments
Issue Links
- is supplemented by
-
CRM-14159 Add ability to return metadata during api call
-
- Done/Fixed
-
The fact that 'values' contains all data for every other api is 100% standardized right now and I'm not sure we should mess with that standard. Esp if we want to get rid of the wrapper around 'values' in v4.
What about a result like:
array(
'count' => x,
'is_error' => y,
'values' => array(
'header' => array(...),
'rows' => array(...),
),
)