fix edit and list

This commit is contained in:
aina esokia
2020-09-29 18:26:25 +03:00
parent 1be9b62ea8
commit f7b2fa581c
6 changed files with 142 additions and 39 deletions

View File

@@ -65,7 +65,12 @@ class PSExposeController extends Controller
]);
if ($resPublication->getStatusCode() == 200) {
$publications[] = json_decode($resPublication->getBody()->getContents(),true);
$publication = json_decode($resPublication->getBody()->getContents(),true);
$publications[] = $publication;
foreach ($publication['children'] as $child ) {
$publications[] = $child;
}
}
}