mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
fix #644 Status off by default
This commit is contained in:
@@ -167,8 +167,9 @@ class Upload implements ControllerProviderInterface
|
||||
|
||||
$postStatus = $request->get('status');
|
||||
|
||||
if (is_array($postStatus)) {
|
||||
|
||||
if (isset($postStatus[$collection->get_sbas_id()]) && is_array($postStatus[$collection->get_sbas_id()])) {
|
||||
$postStatus = $postStatus[$collection->get_sbas_id()];
|
||||
|
||||
$status = '';
|
||||
foreach (range(0, 64) as $i) {
|
||||
$status .= isset($postStatus[$i]) ? ($postStatus[$i] ? '1' : '0') : '0';
|
||||
|
Reference in New Issue
Block a user