Fix restore list of attached files into action report

This commit is contained in:
Laurent Destailleur 2016-10-03 00:38:28 +02:00
parent 45a808e034
commit 6ac39b97e4
10 changed files with 12 additions and 0 deletions

View File

@ -89,6 +89,7 @@ $actiontypecode='';
$trigger_name=''; $trigger_name='';
$paramname='id'; $paramname='id';
$mode='emailfortest'; $mode='emailfortest';
$trackid=(($action == 'testhtml')?"testhtml":"test");
include DOL_DOCUMENT_ROOT.'/core/actions_sendmails.inc.php'; include DOL_DOCUMENT_ROOT.'/core/actions_sendmails.inc.php';
if ($action == 'presend' && GETPOST('trackid') == 'test') $action='test'; if ($action == 'presend' && GETPOST('trackid') == 'test') $action='test';

View File

@ -26,11 +26,13 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/** /**
* \file htdocs/comm/propal/card.php * \file htdocs/comm/propal/card.php
* \ingroup propale * \ingroup propale
* \brief Page of commercial proposals card and list * \brief Page of commercial proposals card and list
*/ */
require '../../main.inc.php'; require '../../main.inc.php';
require_once DOL_DOCUMENT_ROOT . '/core/class/html.formother.class.php'; require_once DOL_DOCUMENT_ROOT . '/core/class/html.formother.class.php';
require_once DOL_DOCUMENT_ROOT . '/core/class/html.formfile.class.php'; require_once DOL_DOCUMENT_ROOT . '/core/class/html.formfile.class.php';
@ -609,6 +611,7 @@ if (empty($reshook))
$trigger_name='PROPAL_SENTBYMAIL'; $trigger_name='PROPAL_SENTBYMAIL';
$paramname='id'; $paramname='id';
$mode='emailfromproposal'; $mode='emailfromproposal';
$trackid='pro'.$object->id;
include DOL_DOCUMENT_ROOT.'/core/actions_sendmails.inc.php'; include DOL_DOCUMENT_ROOT.'/core/actions_sendmails.inc.php';

View File

@ -1256,6 +1256,7 @@ if (empty($reshook))
$trigger_name='ORDER_SENTBYMAIL'; $trigger_name='ORDER_SENTBYMAIL';
$paramname='id'; $paramname='id';
$mode='emailfromorder'; $mode='emailfromorder';
$trackid='ord'.$object->id;
include DOL_DOCUMENT_ROOT.'/core/actions_sendmails.inc.php'; include DOL_DOCUMENT_ROOT.'/core/actions_sendmails.inc.php';

View File

@ -1781,6 +1781,7 @@ if (empty($reshook))
$trigger_name='BILL_SENTBYMAIL'; $trigger_name='BILL_SENTBYMAIL';
$paramname='id'; $paramname='id';
$mode='emailfrominvoice'; $mode='emailfrominvoice';
$trackid='inv'.$object->id;
include DOL_DOCUMENT_ROOT.'/core/actions_sendmails.inc.php'; include DOL_DOCUMENT_ROOT.'/core/actions_sendmails.inc.php';

View File

@ -551,6 +551,7 @@ if (empty($reshook))
$trigger_name='SHIPPING_SENTBYMAIL'; $trigger_name='SHIPPING_SENTBYMAIL';
$paramname='id'; $paramname='id';
$mode='emailfromshipment'; $mode='emailfromshipment';
$trackid='shi'.$object->id;
include DOL_DOCUMENT_ROOT.'/core/actions_sendmails.inc.php'; include DOL_DOCUMENT_ROOT.'/core/actions_sendmails.inc.php';
} }

View File

@ -766,6 +766,7 @@ if (empty($reshook))
$trigger_name='FICHINTER_SENTBYMAIL'; $trigger_name='FICHINTER_SENTBYMAIL';
$paramname='id'; $paramname='id';
$mode='emailfromintervention'; $mode='emailfromintervention';
$trackid='int'.$object->id;
include DOL_DOCUMENT_ROOT.'/core/actions_sendmails.inc.php'; include DOL_DOCUMENT_ROOT.'/core/actions_sendmails.inc.php';

View File

@ -1159,6 +1159,7 @@ if (empty($reshook))
$trigger_name='ORDER_SUPPLIER_SENTBYMAIL'; $trigger_name='ORDER_SUPPLIER_SENTBYMAIL';
$paramname='id'; $paramname='id';
$mode='emailfromsupplierorder'; $mode='emailfromsupplierorder';
$trackid='sor'.$object->id;
include DOL_DOCUMENT_ROOT.'/core/actions_sendmails.inc.php'; include DOL_DOCUMENT_ROOT.'/core/actions_sendmails.inc.php';

View File

@ -965,6 +965,7 @@ if (empty($reshook))
$trigger_name='BILL_SUPPLIER_SENTBYMAIL'; $trigger_name='BILL_SUPPLIER_SENTBYMAIL';
$paramname='id'; $paramname='id';
$mode='emailfromsupplierinvoice'; $mode='emailfromsupplierinvoice';
$trackid='sin'.$object->id;
include DOL_DOCUMENT_ROOT.'/core/actions_sendmails.inc.php'; include DOL_DOCUMENT_ROOT.'/core/actions_sendmails.inc.php';

View File

@ -712,6 +712,7 @@ if (empty($reshook))
$trigger_name='COMPANY_SENTBYMAIL'; $trigger_name='COMPANY_SENTBYMAIL';
$paramname='socid'; $paramname='socid';
$mode='emailfromthirdparty'; $mode='emailfromthirdparty';
$trackid='thi'.$object->id;
include DOL_DOCUMENT_ROOT.'/core/actions_sendmails.inc.php'; include DOL_DOCUMENT_ROOT.'/core/actions_sendmails.inc.php';
// Actions to build doc // Actions to build doc

View File

@ -475,6 +475,7 @@ if (empty($reshook))
$trigger_name='SUPPLIER_PROPOSAL_SENTBYMAIL'; $trigger_name='SUPPLIER_PROPOSAL_SENTBYMAIL';
$paramname='id'; $paramname='id';
$mode='emailfromsupplierproposal'; $mode='emailfromsupplierproposal';
$trackid='spr'.$object->id;
include DOL_DOCUMENT_ROOT.'/core/actions_sendmails.inc.php'; include DOL_DOCUMENT_ROOT.'/core/actions_sendmails.inc.php';