Skip to content

Prevent parent skill to become child skill #3987

Description

@ywarnier

In the skills management edition interface (/main/admin/skill_edit.php?id=x), it is possible to select a "Parent" skill that is already marked as a child skill. This creates an infinite loop and ends up in an error.

Make sure the proposed "Parent" drop-down list prevents selecting any child (at any level) of the current edited skill, by making sure the recursive function that builds the list excludes the current skill at the first possible occurence.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions