mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 15:33:15 +00:00
reset should be called on a variable.
PHRAS-938
This commit is contained in:
@@ -30,13 +30,14 @@ class PropertyController extends Controller
|
|||||||
|
|
||||||
$records = RecordsRequest::fromRequest($this->app, $request, false, ['chgstatus']);
|
$records = RecordsRequest::fromRequest($this->app, $request, false, ['chgstatus']);
|
||||||
|
|
||||||
if (count($records->databoxes()) > 1) {
|
$databoxes = $records->databoxes();
|
||||||
|
if (count($databoxes) > 1) {
|
||||||
return new Response($this->render('prod/actions/Property/index.html.twig', [
|
return new Response($this->render('prod/actions/Property/index.html.twig', [
|
||||||
'records' => $records,
|
'records' => $records,
|
||||||
]));
|
]));
|
||||||
}
|
}
|
||||||
|
|
||||||
$databox = reset($records->databoxes());
|
$databox = reset($databoxes);
|
||||||
$statusStructure = $databox->getStatusStructure();
|
$statusStructure = $databox->getStatusStructure();
|
||||||
$recordsStatuses = [];
|
$recordsStatuses = [];
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user