From ba81a98b01dd67cfed5ff5dc87f6b3266a0a38ab Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Thu, 1 Nov 2018 03:15:01 +0100 Subject: [PATCH] login/edit: define options for found tags Saved values were ignored since commit v3.4-14-g970fb1d1b9 (2018-07-14) [login/edit: generic multi-values declaration]. --- login/edit.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/login/edit.php b/login/edit.php index 9b339a2..1d29b03 100644 --- a/login/edit.php +++ b/login/edit.php @@ -41,14 +41,15 @@ foreach ($cols as $col => &$colconf) { $tagname = pathinfo($tag, PATHINFO_BASENAME); $target = "$tag/{$user['name']}"; $val = file_exists($target); - $tags[$tagname] = ['value' => $val]; + $tagopt = &$colconf['values'][$tagname]; + $tagopt = ['value' => $val]; if (!is_writable($tag)) { continue; # locked tag directory } if ($val and !is_writable($target)) { continue; # existing file locked } - $tags[$tagname]['target'] = $target; + $tagopt['target'] = $target; } } -- 2.30.0