mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
Merge pull request #193 from nlegoff/fix_upload_status
Fix #868 upload status on 3.7
This commit is contained in:
@@ -201,8 +201,8 @@ class Upload implements ControllerProviderInterface
|
||||
|
||||
$postStatus = $request->get('status');
|
||||
|
||||
if (isset($postStatus[$collection->get_sbas_id()]) && is_array($postStatus[$collection->get_sbas_id()])) {
|
||||
$postStatus = $postStatus[$collection->get_sbas_id()];
|
||||
if (isset($postStatus[$collection->get_base_id()]) && is_array($postStatus[$collection->get_base_id()])) {
|
||||
$postStatus = $postStatus[$collection->get_base_id()];
|
||||
|
||||
$status = '';
|
||||
foreach (range(0, 63) as $i) {
|
||||
|
@@ -248,7 +248,7 @@ class UploadTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
||||
$params = array(
|
||||
'base_id' => self::$collection->get_base_id(),
|
||||
'forceAction' => \Alchemy\Phrasea\Border\Manager::FORCE_RECORD,
|
||||
'status' => array( self::$collection->get_sbas_id() => array( 4 => 1)),
|
||||
'status' => array( self::$collection->get_base_id() => array( 4 => 1)),
|
||||
);
|
||||
|
||||
$files = array(
|
||||
|
Reference in New Issue
Block a user