This function iterates through the parameters of the URL search string to delete all the parameters except "tab", "step" and "invoice_step".
The problem is that the iteration stops after the "tab" parameter, so any parameter after that is not deleted. I believe this is due to the fact that the "tab" parameter is set to a value having "#", which in fact terminates the "search" portion of the URL.
This should be changed so that the "tab" parameter is set to a value without a "#".
This function iterates through the parameters of the URL search string to delete all the parameters except "tab", "step" and "invoice_step".
The problem is that the iteration stops after the "tab" parameter, so any parameter after that is not deleted. I believe this is due to the fact that the "tab" parameter is set to a value having "#", which in fact terminates the "search" portion of the URL.
This should be changed so that the "tab" parameter is set to a value without a "#".