fix for CRM-11310 : applied patch

applied patch and checked, working fine.