<div dir="ltr"><div><div><div>Hi,<br><br></div>When I try to execute query within Sql tab, many a times I get "Missing value in the form!" alert. I'm not sure if it's happening to just me or it's a bug introduced somehow.<br>
</div><div>I using current git version. <br></div><div>Steps to reproduce:<br></div><div>1. Select any database from nav pannel<br></div><div>2. Select Sql tab<br></div><div>2. copy and paste this query<br><i>create table missing_val (<br>
    id integer<br>)</i><br></div><div>3. click GO.<br></div><div>OR<br></div><div>1. Select any table from nav panel.<br></div><div>2. Codemirror editor will have a pre-populated query so just click "GO"<br><br>
</div><div>both the above comes with a pop up saying "Missing value in the form!", while it should not.<br><br></div>I was debugging the code for why its happening, i realized in <i>checkSqlQuery</i> function,<br>
<i>sqlQuery.value</i> is either empty or is having just part of input value in some cases (where it is working as the value is not empty). So to fix it, I added a line that explicitly set the value of <i>sqlQuery</i> element and now its working for me. <br>
Here is the commit, let me know if it looks fine, I'll add a bug and send a pull request.<br><a href="https://github.com/smita786/phpmyadmin/commit/51d78cbb81f0e0121b3b1b932604487a71c809f8">https://github.com/smita786/phpmyadmin/commit/51d78cbb81f0e0121b3b1b932604487a71c809f8</a><br>
<br></div><div>Thanks and Regards<br></div><div>- Smita Kumari<br></div></div>