VeronicaWasson/MoviesSPA

Update of the movies fails due to missing parenthesis for observable ID property in app.service.js

Opened this issue · 0 comments

Update of the movie record in the grid results in the HTTP 404 error. This is due to missing parenthesis for the KO observable property "ID" in the "app.service.js" under "Scripts" folder.

Current:

    update: function (item) {
        return ajaxRequest('put', serviceUrls.byId(item.ID), item);
    }

Correct:

    update: function (item) {
        return ajaxRequest('put', serviceUrls.byId(item.ID()), item);
    }