Fix form structure, use of get instead of post and duplicated action input
parent
feecd5439d
commit
5ae47c8671
|
@ -22,8 +22,9 @@ if ( !empty($_REQUEST['did']) ) {
|
||||||
<span aria-hidden="true">×</span>
|
<span aria-hidden="true">×</span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
<form id="deviceModalForm" name="contentForm" method="post" action="?view=device">
|
||||||
|
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<form id="deviceModalForm" name="contentForm" method="get" action="?view=device&action=device">
|
|
||||||
<?php
|
<?php
|
||||||
// We have to manually insert the csrf key into the form when using a modal generated via ajax call
|
// We have to manually insert the csrf key into the form when using a modal generated via ajax call
|
||||||
echo getCSRFinputHTML();
|
echo getCSRFinputHTML();
|
||||||
|
|
Loading…
Reference in New Issue