You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When trying to create course from LMS UI nothing happened
the button save does nothing, and the course is not created.
To Reproduce
Steps to reproduce the behavior:
After installing frappe 15 & lms 15. no error occured.
login and try to create course from the lms page.
fill all the required field, then hit save.
nothing happened.
inspect element, traceback as specified below.
additional context:
*when trying to create from frappe doctype page, successfully created the course.
Additional context
reviewed the code i think its because of the
get_meta() function
line 43 course_name = app_path.split("/")[1] > the course hasn't been created yet, since its the first time were creating it.
so i return NoneType?
Expected behavior
A clear and concise description of what you expected to happen.
Traceback (most recent call last):
File "apps/frappe/frappe/website/serve.py", line 20, in get_response
response = renderer_instance.render()
File "apps/frappe/frappe/website/page_renderers/template_page.py", line 84, in render
html = self.get_html()
File "apps/frappe/frappe/website/utils.py", line 523, in cache_html_decorator
html = func(*args, **kwargs)
File "apps/frappe/frappe/website/page_renderers/template_page.py", line 95, in get_html
self.update_context()
File "apps/frappe/frappe/website/page_renderers/template_page.py", line 163, in update_context
data = self.run_pymodule_method("get_context")
File "apps/frappe/frappe/website/page_renderers/template_page.py", line 225, in run_pymodule_method
return method()
File "apps/lms/lms/www/lms.py", line 13, in get_context
context.meta = get_meta(app_path)
File "apps/lms/lms/www/lms.py", line 51, in get_meta
"title": course.title,
AttributeError: 'NoneType' object has no attribute 'title'
Screenshots
Desktop (please complete the following information):
OS: Linux Ubuntu 22.04
The text was updated successfully, but these errors were encountered:
@richardadinugraha I am unable to replicate the issue. Can you ensure that the app is updated and try creating a course again? Let me know if you face any issues.
Describe the bug
When trying to create course from LMS UI nothing happened
the button save does nothing, and the course is not created.
To Reproduce
Steps to reproduce the behavior:
additional context:
*when trying to create from frappe doctype page, successfully created the course.
Additional context
reviewed the code i think its because of the
get_meta() function
line 43 course_name = app_path.split("/")[1] > the course hasn't been created yet, since its the first time were creating it.
so i return NoneType?
Expected behavior
A clear and concise description of what you expected to happen.
Traceback (most recent call last):
File "apps/frappe/frappe/website/serve.py", line 20, in get_response
response = renderer_instance.render()
File "apps/frappe/frappe/website/page_renderers/template_page.py", line 84, in render
html = self.get_html()
File "apps/frappe/frappe/website/utils.py", line 523, in cache_html_decorator
html = func(*args, **kwargs)
File "apps/frappe/frappe/website/page_renderers/template_page.py", line 95, in get_html
self.update_context()
File "apps/frappe/frappe/website/page_renderers/template_page.py", line 163, in update_context
data = self.run_pymodule_method("get_context")
File "apps/frappe/frappe/website/page_renderers/template_page.py", line 225, in run_pymodule_method
return method()
File "apps/lms/lms/www/lms.py", line 13, in get_context
context.meta = get_meta(app_path)
File "apps/lms/lms/www/lms.py", line 51, in get_meta
"title": course.title,
AttributeError: 'NoneType' object has no attribute 'title'
Screenshots
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: