Fix form structure, use of get instead of post and duplicated action input

pull/3609/head
Isaac Connor 2022-10-13 09:08:41 -04:00
parent 0071d3da40
commit c7eac3383a
1 changed files with 2 additions and 1 deletions

View File

@ -22,8 +22,9 @@ if ( !empty($_REQUEST['did']) ) {
<span aria-hidden="true">&times;</span>
</button>
</div>
<form id="deviceModalForm" name="contentForm" method="post" action="?view=device">
<div class="modal-body">
<form id="deviceModalForm" name="contentForm" method="get" action="?view=device&action=device">
<?php
// We have to manually insert the csrf key into the form when using a modal generated via ajax call
echo getCSRFinputHTML();