Problem/Motivation

When rendering groups, opigno_learning_path can try to build a start link for non-learning paths, resulting in a fatal error.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

catch created an issue. See original summary.

catch’s picture

Status: Active » Needs review
FileSize
464 bytes
axelm’s picture

Hi @catch
There are only two places where function (get_start_link) is used.
Both belong to learning path templates - LP group template and catalog take link template.
Both templates deal only with learning path groups so currently it’s impossible to have a situation like you suggest.
Or we need additional details about the way to reproduce the issue.

axelm’s picture

Status: Needs review » Postponed (maintainer needs more info)
catch’s picture

Status: Postponed (maintainer needs more info) » Needs review
FileSize
466 bytes

This happens if you modify the 'catalog' view to include a different group bundle.

(Also uploading a correct patch).

axelm’s picture

Thanks @catch
We will include this in the next version of Opigno

axelm’s picture

Status: Needs review » Patch (to be ported)
axelm’s picture

Status: Patch (to be ported) » Fixed
axelm’s picture

Status: Fixed » Closed (fixed)