<div dir="ltr"><div><div><div><div><div><div><div><div>Hi,<br></div>My name is Mohit Goyal and I am a 3rd year undergraduate in BITS Pilani K.K. Birla Goa Campus. I am new to the open-source community and thought I would start with PHPMyAdmin as I have used it in projects before.<br>
<br></div>To start understanding the codebase, I thought I would start with one of the bugs listed. The bug I started with was <b>Bug #4184 Switch to Wrong Page After Adding Index</b> : <a href="https://sourceforge.net/p/phpmyadmin/bugs/4184/">https://sourceforge.net/p/phpmyadmin/bugs/4184/</a><br>
<br></div>While trying to figure out the issue, I did the following :<br></div>In libraries/structure.lib.php, in lines 1835 - 1845 ( in function - PMA_getHtmlForActionRowInStructureTable() )<br><br></div>Removed line : ($hasLinkClass ? 'class="ajax add_primary_key_anchor" ' : '')<br>
</div>Added Line : 'class="ajax" '<br><br></div>As a result, I am getting a javascript function that enables editing of the index ( adding names and comments etc. ). I have also attached a screenshot for the same. The indexes are being added and the original issue of switching back to the wrong page is solved.<br>
</div><div>However, I think that this particular functionality had been disabled initially as the function had been pre-written. Can anybody please shed some light on this ?<br><br></div><div>Thanks<br><br></div><div><div>
<div><div><div dir="ltr"><span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Warm Regards,<br>Mohit Goyal | +918600046760<br></span><div><span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">BITS-Pilani Goa Campus</span></div>
</div>
</div></div></div></div></div>