Hide tool bar error

Hi ,
i want to hide toolbar of custom doctype which is submittable for this i tick the option hide toolbr. But it throws following error
Cannot read property ‘comment_area’ of undefined

Please copy and paste the full traceback to share here thanks