Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make start and end date as mandatory #5843

Merged
merged 1 commit into from
Jul 23, 2018
Merged

Conversation

shreyashah115
Copy link
Contributor

Error due to calendar view if start and end date are blank.

Traceback (most recent call last):
  File "/home/frappe/benches/bench-2018-07-19/apps/frappe/frappe/app.py", line 62, in application
    response = frappe.handler.handle()
  File "/home/frappe/benches/bench-2018-07-19/apps/frappe/frappe/handler.py", line 22, in handle
    data = execute_cmd(cmd)
  File "/home/frappe/benches/bench-2018-07-19/apps/frappe/frappe/handler.py", line 53, in execute_cmd
    return frappe.call(method, **frappe.form_dict)
  File "/home/frappe/benches/bench-2018-07-19/apps/frappe/frappe/__init__.py", line 939, in call
    return fn(*args, **newargs)
  File "/home/frappe/benches/bench-2018-07-19/apps/frappe/frappe/desk/calendar.py", line 46, in get_events
    return frappe.get_list(doctype, fields=fields, filters=filters)
  File "/home/frappe/benches/bench-2018-07-19/apps/frappe/frappe/__init__.py", line 1150, in get_list
    return frappe.model.db_query.DatabaseQuery(doctype).execute(None, *args, **kwargs)
  File "/home/frappe/benches/bench-2018-07-19/apps/frappe/frappe/model/db_query.py", line 88, in execute
    result = self.build_and_run()
  File "/home/frappe/benches/bench-2018-07-19/apps/frappe/frappe/model/db_query.py", line 100, in build_and_run
    args = self.prepare_args()
  File "/home/frappe/benches/bench-2018-07-19/apps/frappe/frappe/model/db_query.py", line 116, in prepare_args
    self.sanitize_fields()
  File "/home/frappe/benches/bench-2018-07-19/apps/frappe/frappe/model/db_query.py", line 204, in sanitize_fields
    if sub_query_regex.match(field):
TypeError: expected string or buffer

@shreyashah115 shreyashah115 changed the base branch from develop to hotfix July 20, 2018 09:18
@rmehta rmehta merged commit 71f829e into frappe:hotfix Jul 23, 2018
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants