[V12] TypeError: add_comment() takes exactly 4 arguments (0 given)

While Saving any Document in ERP
Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)
(api/method/frappe.desk.form.utils.add_comment:1 )

ERPNext: v12.1.8 (version-12)

Frappe Framework: v12.0.18 (version-12)

Traceback (most recent call last):
  File "/home/ubuntu/frappe-bench/apps/frappe/frappe/app.py", line 60, in application
    response = frappe.api.handle()
  File "/home/ubuntu/frappe-bench/apps/frappe/frappe/api.py", line 55, in handle
    return frappe.handler.handle()
  File "/home/ubuntu/frappe-bench/apps/frappe/frappe/handler.py", line 22, in handle
    data = execute_cmd(cmd)
  File "/home/ubuntu/frappe-bench/apps/frappe/frappe/handler.py", line 61, in execute_cmd
    return frappe.call(method, **frappe.form_dict)
  File "/home/ubuntu/frappe-bench/apps/frappe/frappe/__init__.py", line 1038, in call
    return fn(*args, **newargs)
TypeError: add_comment() takes exactly 4 arguments (0 given)

Github Issue Created
https://github.com/frappe/frappe/issues/8827