Skip to content

Commit

Permalink
Prepare 3.2.1rc2 (#2235)
Browse files Browse the repository at this point in the history
* Use the object to make the item (#2234)

* Prepare for 3.2.1rc2
  • Loading branch information
ramonski authored Sep 15, 2017
1 parent d2555dc commit b3e66b9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions bika/lims/browser/bika_listing.py
Original file line number Diff line number Diff line change
Expand Up @@ -849,12 +849,12 @@ def get_type_title(self, obj):
return fti.Title()

@cache(api.bika_cache_key_decorator, store_on_context)
def make_listing_item(self, brain):
def make_listing_item(self, obj):
"""Returns an object dictionary suitable for the listing view
"""

# ensure we have an object
obj = api.get_object(brain)
obj = api.get_object(obj)

# prepare some data
id = api.get_id(obj)
Expand Down Expand Up @@ -1045,7 +1045,7 @@ def folderitems(self, full_objects=False):
continue

# create a listing item
results_dict = self.make_listing_item(brain)
results_dict = self.make_listing_item(obj)

# Search for values for all columns in obj
for key in self.columns.keys():
Expand Down
3 changes: 2 additions & 1 deletion docs/CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
3.2.1rc2 (unreleased)
3.2.1rc2 (2017-09-15)
---------------------

- Issue-2234: Use the object to create the cached listing item
- Issue-2219: Copied ARs are created in random order
- Issue-2214: AR Add Controls need to be styled correctly

Expand Down

0 comments on commit b3e66b9

Please sign in to comment.