You have identified a bug in a MantisBT, and you have developed a solution to correct the defect. So, how do you submit that solution, for inclusion in MantisBT?
By following the guidelines set out below, you will give your solution its best chance of being adopted, in a timely fashion.
http://mantisbt.org/docs/master-1.3.x/en-US/Developers_Guide/html-desktop/#dev.contrib.submit
Thank you for reading this document – we look forward to your patches!