Merge pull request #22032 from dolibit-ut/patch-504
Update target_note.php
This commit is contained in:
commit
b8f326ccf8
@ -17,22 +17,24 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* \file target_note.php
|
||||
* \ingroup webhook
|
||||
* \brief Tab for notes on Target
|
||||
* \file htdocs/webhook/target_note.php
|
||||
* \ingroup webhook
|
||||
* \brief Tab for notes on Target
|
||||
*/
|
||||
|
||||
|
||||
// Load Dolibarr environment
|
||||
require '../main.inc.php';
|
||||
dol_include_once('/webhook/class/target.class.php');
|
||||
dol_include_once('/webhook/lib/webhook_target.lib.php');
|
||||
|
||||
// Load translation files required by the page
|
||||
$langs->loadLangs(array("webhook@webhook", "companies"));
|
||||
$langs->loadLangs(array('webhook', 'companies'));
|
||||
|
||||
// Get parameters
|
||||
$id = GETPOST('id', 'int');
|
||||
$id = GETPOST('id', 'int');
|
||||
$ref = GETPOST('ref', 'alpha');
|
||||
$action = GETPOST('action', 'aZ09');
|
||||
$action = GETPOST('action', 'aZ09');
|
||||
$cancel = GETPOST('cancel', 'aZ09');
|
||||
$backtopage = GETPOST('backtopage', 'alpha');
|
||||
|
||||
@ -41,6 +43,7 @@ $object = new Target($db);
|
||||
$extrafields = new ExtraFields($db);
|
||||
$diroutputmassaction = $conf->webhook->dir_output.'/temp/massgeneration/'.$user->id;
|
||||
$hookmanager->initHooks(array('targetnote', 'globalcard')); // Note that conf->hooks_modules contains array
|
||||
|
||||
// Fetch optionals attributes and labels
|
||||
$extrafields->fetch_name_optionals_label($object->table_element);
|
||||
|
||||
@ -50,7 +53,7 @@ if ($id > 0 || !empty($ref)) {
|
||||
$upload_dir = $conf->webhook->multidir_output[!empty($object->entity) ? $object->entity : $conf->entity]."/".$object->id;
|
||||
}
|
||||
|
||||
|
||||
// Permissions
|
||||
// There is several ways to check permission.
|
||||
// Set $enablepermissioncheck to 1 to enable a minimum low level of checks
|
||||
$enablepermissioncheck = 0;
|
||||
@ -93,7 +96,7 @@ if (empty($reshook)) {
|
||||
|
||||
$form = new Form($db);
|
||||
|
||||
//$help_url='EN:Customers_Orders|FR:Commandes_Clients|ES:Pedidos de clientes';
|
||||
//$help_url='EN:Webhooks|FR:Webhooks_FR|ES:Webhooks_ES';
|
||||
$help_url = '';
|
||||
$title = $langs->trans('Target').' - '.$langs->trans("Notes");
|
||||
llxHeader('', $title, $help_url);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user