Skip to content

When API returns a datatable that has only one column, column name is "value"Β #7051

@tsteur

Description

@tsteur

Compare eg output of http://demo.piwik.org/index.php?module=API&method=API.get&idSite=7&period=day&date=yesterday&format=JSON&token_auth=anonymous

{"nb_uniq_visitors":586,"nb_visits":651,"nb_users":0,"nb_actions":1394,"max_actions":48,...}

with output of http://demo.piwik.org/index.php?module=API&method=API.get&idSite=7&period=day&date=yesterday&format=JSON&token_auth=anonymous&columns=nb_visits

{"value":651}

Expected is

{"nb_visits":651}

I wouldn't be surprised if this even causes bugs in the UI etc depending on the selected columns

Metadata

Metadata

Assignees

Labels

BugFor errors / faults / flaws / inconsistencies etc.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions