Fix restore list of attached files into action report
This commit is contained in:
parent
45a808e034
commit
6ac39b97e4
@ -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';
|
||||||
|
|||||||
@ -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';
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -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';
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -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';
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -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';
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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';
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -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';
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -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';
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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';
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user