Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReportService::getReportInputControls() error in line 66 #20

Open
Orajo opened this issue Nov 16, 2015 · 0 comments
Open

ReportService::getReportInputControls() error in line 66 #20

Orajo opened this issue Nov 16, 2015 · 0 comments

Comments

@Orajo
Copy link

Orajo commented Nov 16, 2015

$json_obj = json_decode($data);
[...]
foreach ($json_obj->inputControlState as $state) {
$result[] = \Jaspersoft\Dto\Report\InputControl::createFromJSON($state);
}

In this fragment there is an error, because JSON data are first decoded, and then passed as argument to createFromJSON, which expects JSON data:

public static function createFromJSON($json)
{
$data_array = json_decode($json, true);

and above line triggers error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant