Some users are seeing the javascript error "Server JavaScript error "getRecordBeingApproved" is not defined." when they go to Service Portal.Issue When a user with approvals records would see the following error when they go to Service Portal: Server JavaScript error "getRecordBeingApproved" is not defined.Line number 30Script source code logged to browser consoleFailing widget: 'Header Menu' (5ef595c1cb12020000f8d856634c9c6e) called from: 'Stock Header' (bf5ec2f2cb10120000f8d856634c9c0c)CauseThe cause of the error is that in the 'sp_rectangle_menu_item', the function 'getRecordBeingApproved()' is not defined. There is an OOB menu item 'Approvals' to get the approval records of a user and display them in the portal header. For some reason, the customer might have customized it and missed to define the declared function 'getRecordBeingApproved()'.ResolutionIn order to resolve the issue, add the function 'getRecordBeingApproved' in the menu item 'Approvals'.