From b87f8389eac02fc29a9d7dc975ec0636a3fa5e0b Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 25 Mar 2026 23:04:27 +0100 Subject: [PATCH] Doc --- htdocs/langs/en_US/admin.lang | 3 ++- htdocs/webhook/class/target.class.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/htdocs/langs/en_US/admin.lang b/htdocs/langs/en_US/admin.lang index cda0bd090a8..c1ccad0db66 100644 --- a/htdocs/langs/en_US/admin.lang +++ b/htdocs/langs/en_US/admin.lang @@ -2842,7 +2842,7 @@ NoKeyWarning=No API Key generated. External tools cannot access Dolibarr. GenerateKey=Generate New Key AiMcpExternalAccess=External Access (AI LLM has access to your data) ErrorMissingSocId=Missing or invalid thirdparty('socid'). A Third Party ID is mandatory. -ConnectionSuccessful=Connection Successful! Response: +ConnectionSuccessful=Connection Successful! Response: ConnectionFailed=Connection Failed: KeyGenerationFailed=Failed to generate secure API Key KeyGenerationSuccessfull=New API Key Generated Successfully @@ -2853,3 +2853,4 @@ AI_API_MODEL=AI API model AI_API_MODEL_HELP=The AI model to use DisplayExtraOnTooltip = Display on Tooltips DisplayExtraOnTooltipDesc = This field will be displayed on dynamically loaded tooltips. +WebHooksSupportExternalUrlOnly=Webhooks support external URL only. Set $dolibarr_allow_localurl_for_webhooks in conf.php file if you need to support URL local to the server. diff --git a/htdocs/webhook/class/target.class.php b/htdocs/webhook/class/target.class.php index 9fdbe6dc410..2f790dfce18 100644 --- a/htdocs/webhook/class/target.class.php +++ b/htdocs/webhook/class/target.class.php @@ -103,7 +103,7 @@ class Target extends CommonObject 'label' => array('type' => 'varchar(255)', 'label' => 'Label', 'enabled' => 1, 'position' => 30, 'notnull' => 1, 'visible' => 1, 'searchall' => 1, 'css' => 'minwidth300', 'cssview' => 'wordbreak', 'csslist' => 'tdoverflowmax150', 'showoncombobox' => 2, 'validate' => 1, 'autofocusoncreate' => 1), 'type' => array('type' => 'select', 'label' => 'Type', 'enabled' => 1, 'position' => 40, 'notnull' => 1, 'default' => '0', 'visible' => 1, 'index' => 1, 'arrayofkeyval' => array('0' => 'TypeSuccessRequired', '1' => 'TypeSuccessOrError'), 'css' => 'minwidth200', 'help' => 'WebhookTargetTypeHelp', 'validate' => 1), 'trigger_codes' => array('type' => 'text', 'label' => 'TriggerCodes', 'enabled' => 1, 'position' => 50, 'notnull' => 1, 'visible' => 1, 'help' => "TriggerCodeInfo", 'tdcss' => 'titlefieldmiddle', 'csslist' => 'tdoverflowmax200', 'css' => 'minwidth400', 'arrayofkeyval' => array('defined_in_constructor' => 'defined_from_c_action_trigger'), 'multiinput' => 1,), - 'url' => array('type' => 'url', 'label' => 'Url', 'enabled' => 1, 'position' => 55, 'notnull' => 1, 'visible' => 1,), + 'url' => array('type' => 'url', 'label' => 'Url', 'enabled' => 1, 'position' => 55, 'notnull' => 1, 'visible' => 1, 'help' => 'WebHooksSupportExternalUrlOnly'), 'description' => array('type' => 'text', 'label' => 'Description', 'enabled' => 1, 'position' => 60, 'notnull' => 0, 'visible' => 3, 'validate' => 1,), 'note_public' => array('type' => 'html', 'label' => 'NotePublic', 'enabled' => 1, 'position' => 61, 'notnull' => 0, 'visible' => 0, 'cssview' => 'wordbreak', 'validate' => 1,), 'note_private' => array('type' => 'html', 'label' => 'NotePrivate', 'enabled' => 1, 'position' => 62, 'notnull' => 0, 'visible' => 0, 'cssview' => 'wordbreak', 'validate' => 1,),