Skip to content

Commit

Permalink
[#1255] make package_search results match package_show
Browse files Browse the repository at this point in the history
  • Loading branch information
wardi committed Nov 18, 2013
1 parent 0666cf3 commit d9873cd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ckan/logic/action/get.py
Expand Up @@ -1430,7 +1430,7 @@ def package_search(context, data_dict):
results = []
if not abort:
# return a list of package ids
data_dict['fl'] = 'id data_dict'
data_dict['fl'] = 'id validated_data_dict'

# If this query hasn't come from a controller that has set this flag
# then we should remove any mention of capacity from the fq and
Expand All @@ -1452,7 +1452,8 @@ def package_search(context, data_dict):

for package in query.results:
# get the package object
package, package_dict = package['id'], package.get('data_dict')
package, package_dict = package['id'], package.get(
'validated_data_dict')
pkg_query = session.query(model.PackageRevision)\
.filter(model.PackageRevision.id == package)\
.filter(_and_(
Expand Down

0 comments on commit d9873cd

Please sign in to comment.