mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 23:13: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']);
|
||||
|
||||
if (count($records->databoxes()) > 1) {
|
||||
$databoxes = $records->databoxes();
|
||||
if (count($databoxes) > 1) {
|
||||
return new Response($this->render('prod/actions/Property/index.html.twig', [
|
||||
'records' => $records,
|
||||
]));
|
||||
}
|
||||
|
||||
$databox = reset($records->databoxes());
|
||||
$databox = reset($databoxes);
|
||||
$statusStructure = $databox->getStatusStructure();
|
||||
$recordsStatuses = [];
|
||||
|
||||
|
Reference in New Issue
Block a user