Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.
override method only will work for template, this this code is not on the template, on the core file actually... but this issue will totally fixed in 3.2