Reviewed:  https://reviews.mahara.org/10835
Committed: 
https://git.mahara.org/mahara/mahara/commit/139c67fe6e1704a9e4e8f0fd86245f571e6a7a38
Submitter: Robert Lyon ([email protected])
Branch:    master

commit 139c67fe6e1704a9e4e8f0fd86245f571e6a7a38
Author: Rebecca Blundell <[email protected]>
Date:   Mon Mar 23 16:31:34 2020 +1300

Bug 1866148: Add function first view in a collection code

behatnotneeded
Change-Id: I349f76b7808f29191c4b28249281decfe49f14ec

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask 
on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1866148

Title:
  add a function in class Collection to get the first view in the
  collection

Status in Mahara:
  Fix Committed

Bug description:
  So far, every time we need the first view of a collection as a View
  object, we get the views from the collection, get the id of the first
  and then create the View object

  one idea:

  adjust the function views() from Collection class to fetch first view
  and update the places in mahara to use it, something like

  $view = $collection->views(0);

  or

  $view = $collection->views('first');

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1866148/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~mahara-contributors
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~mahara-contributors
More help   : https://help.launchpad.net/ListHelp

Reply via email to