From 3f58b064c68f1c737238e849c66c538b9384aa0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josep=20Llu=C3=ADs?= Date: Thu, 20 Nov 2025 19:53:59 +0100 Subject: [PATCH] Update redirect location for single record found (#36352) Update redirect location for single record found in v22. In develop version is resolved --- htdocs/comm/mailing/list.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/comm/mailing/list.php b/htdocs/comm/mailing/list.php index 97725dedb5f..1ba93c66af3 100644 --- a/htdocs/comm/mailing/list.php +++ b/htdocs/comm/mailing/list.php @@ -4,6 +4,7 @@ * Copyright (C) 2024 MDW * Copyright (C) 2024 Alexandre Spangaro * Copyright (C) 2024 Frédéric France + * Copyright (C) 2025 Josep Lluís Amador Teruel * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -265,7 +266,7 @@ $num = $db->num_rows($resql); if ($num == 1 && getDolGlobalString('MAIN_SEARCH_DIRECT_OPEN_IF_ONLY_ONE') && $search_all && !$page) { $obj = $db->fetch_object($resql); $id = $obj->rowid; - header("Location: ".dol_buildpath('/mymodule/myobject_card.php', 1).'?id='.$id); + header("Location: ".dol_buildpath('/comm/mailing/card.php', 1).'?id='.$id); exit; }