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

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


  Branch: refs/heads/release-v2.4.4
  Home:   https://github.com/ckan/ckan
  Commit: f17ce585597bf1f41dca5f5cfadb189c5ec2e7b6
      https://github.com/ckan/ckan/commit/f17ce585597bf1f41dca5f5cfadb189c5ec2e7b6
  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