ERP-1182: Fix for templates not being assigned to project unit.