[ckan-changes] [ckan/ckan] b856cd: [#2346] Dashboard_activity_list_html() dosen't pas...

GitHub noreply at github.com
Fri Oct 14 15:15:39 UTC 2016


  Branch: refs/heads/release-v2.3.5
  Home:   https://github.com/ckan/ckan
  Commit: b856cda23ed415130b62e54bf66cd1ae284f195d
      https://github.com/ckan/ckan/commit/b856cda23ed415130b62e54bf66cd1ae284f195d
  Author: Yan <yan.rudneko at linkdigital.com.au>
  Date:   2016-10-14 (Fri, 14 Oct 2016)

  Changed paths:
    M ckan/logic/action/get.py

  Log Message:
  -----------
  [#2346] Dashboard_activity_list_html() dosen't pass user id

Load more don't work on Dashboard page, because dashboard_activity_list_html() don't pass id as an argument, so in activity-stream.js the user_activity_list_html() gives us an error.

Fix it by passing id from context as we do with model= context['model']. As a result context['user'] gives us the name of current user and we can use it, because user_activity_list_html() can take both id and username as id.




More information about the ckan-changes mailing list