chintanbanugaria / 92five

Self hosted project management application
Other
1.15k stars 207 forks source link

Task List - Ajax Request #92

Open aalasolutions-zz opened 9 years ago

aalasolutions-zz commented 9 years ago

I have noted that the Add new Task to a project is sending a request to /dashboard/users,

For me I am trying to run this on PHP 5.3 and making changes and I have noticed that, my project is hosted inside some nested directory and the call was being sent to the root and was having 404

I have changed

assets/js/dashboard/projectusers.js:12

var UserCollection = Backbone.Collection.extend({
    model: UserModel,
    url: 'dashboard/users',
});

to

var url = window.location.href;
var tempurl = url.split('dashboard')[0];
var UserCollection = Backbone.Collection.extend({
    model: UserModel,
    url: tempurl + 'dashboard/users',
});

Same thing done on assets/js/dashboard/projectuserlist.js:10

Now it is loading the users properly