From 79436167ea6ad00374d3bfe77b265ee723445495 Mon Sep 17 00:00:00 2001 From: Daniel Nilsson Date: Thu, 29 Feb 2024 22:27:10 +0100 Subject: luci-app-attendedsysupgrade: clear request hash before every build request Since commit b2ad5d724ef8d0f248080109b7098626e5b5c40c enables you to do multiple searches for a firmware upgrade without reloading the page, it was discovered that if the request hash is not reset, you will get the previous build with that specific request hash as the response even if you select new packages. Signed-off-by: Daniel Nilsson --- .../htdocs/luci-static/resources/view/attendedsysupgrade/overview.js | 1 + 1 file changed, 1 insertion(+) (limited to 'applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade') diff --git a/applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js b/applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js index f3767cb235..0e6ae9d20c 100644 --- a/applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js +++ b/applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js @@ -395,6 +395,7 @@ return view.extend({ }, handleCheck: function (data, firmware) { + this.request_hash = ''; let { url, revision, advanced_mode, branch } = data; let { version, target, profile, packages } = firmware; let candidates = []; -- cgit v1.2.3