mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
Fix unit tests
This commit is contained in:
@@ -238,7 +238,7 @@ class Export implements ControllerProviderInterface
|
||||
$list = $download->prepare_export(
|
||||
$app['phraseanet.user'],
|
||||
$app['filesystem'],
|
||||
$request->request->get('obj'),
|
||||
(array) $request->request->get('obj'),
|
||||
$request->request->get("type") == "title" ? : false,
|
||||
$request->request->get('businessfields')
|
||||
);
|
||||
@@ -288,9 +288,9 @@ class Export implements ControllerProviderInterface
|
||||
$receiver = new Receiver(null, trim($mail));
|
||||
|
||||
$mail = MailRecordsExport::create($app, $receiver, $emitter, $request->request->get('textmail'));
|
||||
$mail->setUrl($url);
|
||||
$mail->setEnddate($endDateObject);
|
||||
|
||||
$mail->setButtonUrl($url);
|
||||
$mail->setExpiration($endDateObject);
|
||||
|
||||
try {
|
||||
$app['notification.deliverer']->deliver($mail);
|
||||
unset($remaingEmails[$key]);
|
||||
|
@@ -21,7 +21,6 @@ use Symfony\Component\HttpFoundation\Response;
|
||||
use Symfony\Component\HttpFoundation\File\UploadedFile;
|
||||
use Symfony\Component\HttpFoundation\File\MimeType\FileBinaryMimeTypeGuesser;
|
||||
use Symfony\Component\HttpFoundation\File\MimeType\MimeTypeGuesser;
|
||||
use Symfony\Component\Serializer\Serializer;
|
||||
|
||||
/**
|
||||
* Upload controller collection
|
||||
@@ -303,7 +302,7 @@ class Upload implements ControllerProviderInterface
|
||||
|
||||
foreach ($user->ACL()->get_granted_base(array('canaddrecord')) as $collection) {
|
||||
$databox = $collection->get_databox();
|
||||
|
||||
|
||||
if ( ! isset($collections[$databox->get_sbas_id()])) {
|
||||
$collections[$databox->get_sbas_id()] = array(
|
||||
'databox' => $databox,
|
||||
|
Reference in New Issue
Block a user