[ckan-changes] [okfn/ckan] 6f7fa8: [#2845] Allow passing empty	lists to group_update
    GitHub 
    noreply at github.com
       
    Sat Aug 18 14:27:43 UTC 2012
    
    
  
  Branch: refs/heads/2845-bug-editing-organization-removes-datasets
  Home:   https://github.com/okfn/ckan
  Commit: 6f7fa8b41f1d08005328afa9e24bb2fbffcf8e85
      https://github.com/okfn/ckan/commit/6f7fa8b41f1d08005328afa9e24bb2fbffcf8e85
  Author: Sean Hammond <seanhammond at lavabit.com>
  Date:   2012-08-18 (Sat, 18 Aug 2012)
  Changed paths:
    M ckan/lib/dictization/model_save.py
  Log Message:
  -----------
  [#2845] Allow passing empty lists to group_update
If, for example, a group dict with a 'packages' key with an empty list
as the value is passed to group_update, then set the group's packages to
an empty list (i.e. remove any packages from the group), even if
'allow_partial_update': True was specified in the context (previously
such an empty list would be ignored and the group's packages would not
change). Also applies to other group fields e.g. tags, users, groups, etc.
    
    
More information about the ckan-changes
mailing list