Commit fb82cbdd authored by Johan Cwiklinski's avatar Johan Cwiklinski

Fix CSRF issue adding PDO on racks; closes #3859

parent 08a4f56f
......@@ -504,8 +504,8 @@ JAVASCRIPT;
'rand' => $rand,
]);
$pra_url = PDU_Rack::getFormURL()."?racks_id=$racks_id";
$ira_url = Item_Rack::getFormURL()."?orientation=0&position=1&racks_id=$racks_id";
$pra_url = PDU_Rack::getFormURL()."?racks_id=$racks_id&ajax=true";
$ira_url = Item_Rack::getFormURL()."?orientation=0&position=1&racks_id=$racks_id&ajax=true";
$js = <<<JAVASCRIPT
var showAddPduSubForm = function() {
......@@ -518,11 +518,8 @@ JAVASCRIPT;
form_url = "{$pra_url}";
}
if (form_url.length) {
$('#pdu_add_sub_form$rand').load(form_url, {
ajax: true,
});
$('#pdu_add_sub_form$rand').load(form_url);
} else {
$('#pdu_add_sub_form$rand').html("");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment