luci-base: form.js: fix AbstractValue.textvalue() for uci list options
authorJo-Philipp Wich <jo@mein.io>
Fri, 16 Apr 2021 15:29:32 +0000 (17:29 +0200)
committerJo-Philipp Wich <jo@mein.io>
Fri, 16 Apr 2021 15:33:04 +0000 (17:33 +0200)
commitd763f9767ecb4ad4383c967948a34fa477b543f8
treec352e530fe23cb9e69f087b38893a2461759a347
parent5b28343fbe50dbf7085272f72d7c634023f44c5a
luci-base: form.js: fix AbstractValue.textvalue() for uci list options

Serialize the uci list value into a space separated string before passing
it to String.format() for HTML escaping. Without that change, empty strings
were returned whenever the underlying uci get operation yieled an array.

Fixes: #4993
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 5c792aefc744d1417fc9e24cfb92cd61cf8a651f)
modules/luci-base/htdocs/luci-static/resources/form.js