This is an automated email from the ASF dual-hosted git repository. jfthomps pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/vcl.git
commit eba0bd45778f17b6d4793f2f9afb9d495bad4341 Author: Josh Thompson <jftho...@ncsu.edu> AuthorDate: Fri Mar 8 12:35:48 2024 -0500 VCL-1138 - make PHP code compatible with PHP 8 privileges.js: modified moveNodeCB: handle status response of invalidreload --- web/js/privileges.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/web/js/privileges.js b/web/js/privileges.js index d9403a93..b15e0bc5 100644 --- a/web/js/privileges.js +++ b/web/js/privileges.js @@ -712,7 +712,12 @@ function moveNodeCB(data, ioArgs) { moveitem.moveid = data.items.moveid; moveitem.oldparentid = data.items.oldparentid; moveitem.newparentid = data.items.newparentid; - if(data.items.status == 'invaliddata') { + if(data.items.status == 'invalidreload') { + alert('Error: invalid data submitted'); + window.location.reload(); + return; + } + else if(data.items.status == 'invaliddata') { alert('Error: invalid data submitted'); revertNodeMove(); return;