Skip to content

Attempting to add new tags when importing a course causes error #248

Description

@chris-steele

What happened?

During course import I selected some tags that were listed in the drop down, but I also typed out the name of a new tag that was not in the list. After importing the course a runtime error occurs and the imported course is seemingly ghosted; it does not appear alongside other courses (see below).

Also note: if the course being imported has specified tags properties that don't exist in the database the same runtime error will occur.

Relevant log output

20:06:58.001 Uncaught TypeError: this.allTags.find(...) is undefined
    appendProjectItem http://localhost:5678/modules/projects/views/projectsView.js:109
    appendProjectItem http://localhost:5678/modules/projects/views/projectsView.js:109
    success http://localhost:5678/modules/projects/views/projectsView.js:141
    success http://localhost:5678/modules/projects/views/projectsView.js:141
    success Backbone
    jQuery 6
    Backbone 4
    _fetch http://localhost:5678/core/collections/apiCollection.js:40
    _fetch http://localhost:5678/core/collections/apiCollection.js:39
    fetch http://localhost:5678/core/collections/apiCollection.js:57
    success http://localhost:5678/modules/projects/views/projectsView.js:135
    success Backbone
    jQuery 6
    Backbone 4
    fetchCollection http://localhost:5678/modules/projects/views/projectsView.js:129
    resetCollection http://localhost:5678/modules/projects/views/projectsView.js:120
    initPaging http://localhost:5678/modules/projects/views/projectsView.js:88
    postRender http://localhost:5678/modules/projects/views/projectsView.js:27
    render http://localhost:5678/core/views/originView.js:32
    Underscore 8
    render http://localhost:5678/core/views/originView.js:31
    initialize http://localhost:5678/core/views/originView.js:18
    Backbone 3
    setView http://localhost:5678/modules/contentPane/index.js:11
    <anonymous> http://localhost:5678/modules/projects/index.js:72
    Backbone 2
    trigger http://localhost:5678/core/origin.js:101
    callTap http://localhost:5678/core/origin.js:158
projectsView.js:109:72

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn error has occurredhigh priorityShould be prioritised over all other issuesstale

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Needs Reviewing

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions