Skip to content

Commit

Permalink
Merge #809 from 3.x into 4.x
Browse files Browse the repository at this point in the history
  • Loading branch information
BalusC committed May 10, 2024
2 parents 5f8d413 + 40da4a7 commit fc11a01
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,7 @@ export module Unload {
}

if (id == null) {
const form = Util.getFacesForm();

if (!form) {
if (!Util.getFacesForm()) {
return;
}

Expand All @@ -60,6 +58,7 @@ export module Unload {
}

try {
const form = Util.getFacesForm();
const url = form.action;
const query = EVENT + "=unload&id=" + id + "&" + VIEW_STATE_PARAM + "=" + encodeURIComponent(form[VIEW_STATE_PARAM].value);
const contentType = "application/x-www-form-urlencoded";
Expand Down

0 comments on commit fc11a01

Please sign in to comment.