Verified Commit 76b3a7c8 authored by Damien's avatar Damien

FEAT #11902 TIME 0:20 Fix pre process

parent 81851d45
......@@ -400,6 +400,7 @@ An action page is described in a ACTIONPAGE tag :
<ID>reconcile</ID>
<LABEL>_RECONCILE</LABEL>
<NAME>reconcile</NAME>
<DESC>_RECONCILE_RESOURCE_DESC</DESC>
<component>reconcileAction</component>
<ORIGIN>apps</ORIGIN>
<MODULE></MODULE>
......
......@@ -1479,11 +1479,6 @@ class PreProcessActionController
}
$body['resources'] = PreProcessActionController::getNonLockedResources(['resources' => $body['resources'], 'userId' => $GLOBALS['id']]);
$targetResource = ResModel::getById(['select' => ['category_id', 'filename'], 'resId' => $body['data']['resId']]);
if ($targetResource['category_id'] == 'outgoing' && empty($targetResource['filename'])) {
return $response->withJson(['fatalError' => 'Target resource has no file', 'reason' => 'targetResourceHasNoFile']);
}
$resourcesInformation = [];
foreach ($body['resources'] as $resId) {
$resource = ResModel::getById(['resId' => $resId, 'select' => ['alt_identifier', 'filename']]);
......
......@@ -471,4 +471,3 @@ define("_SENT_BY", "Sent by");
define('_TO_CCI', 'On copy hidden');
define('_PRIMARY_INFORMATION', 'Primary information');
define("_EMPTY_SUBJECT", "Empty subject");
define("_RECONCILE", "Convert mail into signed version for another mail");
......@@ -471,4 +471,3 @@ define("_SENT_BY", "Envoyé par");
define('_TO_CCI', 'En copie caché');
define('_PRIMARY_INFORMATION', 'Informations principales');
define("_EMPTY_SUBJECT", "Objet vide");
define("_RECONCILE", "Convertir le courrier en version signée d'un autre courrier");
......@@ -477,4 +477,3 @@ define("_SENT_BY", "Sent by"); //TO TRANSLATE
define('_TO_CCI', 'On copy hidden'); //TO TRANSLATE
define('_PRIMARY_INFORMATION', 'Primary information'); //TO TRANSLATE
define("_EMPTY_SUBJECT", "Empty subject"); //TO TRANSLATE
define("_RECONCILE", "Convert mail into signed version for another mail"); //TO TRANSLATE
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment