diff --git a/CHANGELOG.md b/CHANGELOG.md index eb7af2cb5..a48ae5c2b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ # Changelog Fab Manager +- Fix a bug: unable to fetch projects from OpenProjects (#126) + ## v2.8.0 2018 December 27 - Refactored subscriptions to keep track of the previous ones diff --git a/README.md b/README.md index 9df25a5c7..645c5c945 100644 --- a/README.md +++ b/README.md @@ -468,7 +468,7 @@ If you want to try it, you can visit [this fab-manager](https://fablab.lacasemat To start using this awesome feature, there are a few steps: - send a mail to **contact@fab-manager.com** asking for your Open Projects client's credentials and giving them the name of your fab-manager, they will give you an `OPENLAB_APP_ID` and an `OPENLAB_APP_SECRET` -- fill in the value of the keys in your `application.yml` +- fill in the value of the keys in your environment file - start your fab-manager app - export your projects to open-projects (if you already have projects created on your fab-manager, unless you can skip that part) executing this command: `bundle exec rake fablab:openlab:bulk_export` diff --git a/app/assets/javascripts/controllers/projects.js.erb b/app/assets/javascripts/controllers/projects.js.erb index 538f298bd..2bea115e2 100644 --- a/app/assets/javascripts/controllers/projects.js.erb +++ b/app/assets/javascripts/controllers/projects.js.erb @@ -401,7 +401,7 @@ Application.Controllers.controller('ProjectsController', ['$scope', '$state', 'P }; var normalizeProjectsAttrs = function (projects) { - projects.map(function (project) { + return projects.map(function (project) { project.project_image = project.image_url; return project; });