From 48406454fe7dfed4eb6596640772f6b7c27d3913 Mon Sep 17 00:00:00 2001 From: Matthieu Leproux Date: Mon, 29 Nov 2021 13:39:05 +0100 Subject: [PATCH] (cp efd0d06e4) fixes #1573 edit btn in results of album search redirects to right album --- admin/themes/default/template/cat_search.tpl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/admin/themes/default/template/cat_search.tpl b/admin/themes/default/template/cat_search.tpl index 9cb92536c..703d7566a 100644 --- a/admin/themes/default/template/cat_search.tpl +++ b/admin/themes/default/template/cat_search.tpl @@ -111,9 +111,9 @@ function addAlbumResult (cat, nbResult) { function getHtmlPath (cat) { html = ''; for (let i = 0; i < cat[1].length - 1; i++) { - id = cat[1][i]; - c = data[id]; - html += '' + c[0] + ' / ' + id_bis = cat[1][i]; + c = data[id_bis]; + html += '' + c[0] + ' / ' } html += '' + cat[0] + '';