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

bug in Progress when a Section has no Pages #977

Open
MyPyDavid opened this issue Apr 22, 2024 · 0 comments · Fixed by #978
Open

bug in Progress when a Section has no Pages #977

MyPyDavid opened this issue Apr 22, 2024 · 0 comments · Fixed by #978
Assignees
Labels
Milestone

Comments

@MyPyDavid
Copy link
Member

MyPyDavid commented Apr 22, 2024

Description / Beschreibung

When creating a Catalog where the Sections have no Pages (yet) a bug in the Project progress calculation arises and shows a 500 error.

Expected behaviour / Erwartetes Verhalten

no error

Steps to reproduce / Schritte zum Reproduzieren

  1. Create Catalog, Sections without Pages
  2. Click on Project > Answer Questions
  3. See error

Context / Kontext

Version 2.1.3

References / Verweise

File ".../rdmo/projects/progress.py", line 56, in compute_navigation
'first': catalog_section.elements[0].id if section.elements else None
IndexError: list index out of range

@MyPyDavid MyPyDavid added this to the RDMO 2.2.0 milestone Apr 22, 2024
@MyPyDavid MyPyDavid self-assigned this Apr 22, 2024
MyPyDavid added a commit that referenced this issue Apr 22, 2024
Signed-off-by: David Wallace <david.wallace@tu-darmstadt.de>
MyPyDavid added a commit that referenced this issue Apr 22, 2024
Signed-off-by: David Wallace <david.wallace@tu-darmstadt.de>
@MyPyDavid MyPyDavid linked a pull request Apr 22, 2024 that will close this issue
14 tasks
MyPyDavid added a commit that referenced this issue May 14, 2024
Signed-off-by: David Wallace <david.wallace@tu-darmstadt.de>
MyPyDavid added a commit that referenced this issue May 14, 2024
Signed-off-by: David Wallace <david.wallace@tu-darmstadt.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant