← Back to team overview

mahara-contributors team mailing list archive

[Bug 1740208] A change has been merged

 

Reviewed:  https://reviews.mahara.org/8379
Committed: https://git.mahara.org/mahara/mahara/commit/73a105bd5b5d72ba2980bbcf0ce686966cafd586
Submitter: Robert Lyon (robertl@xxxxxxxxxxxxxxx)
Branch:    master

commit 73a105bd5b5d72ba2980bbcf0ce686966cafd586
Author: Robert Lyon <robertl@xxxxxxxxxxxxxxx>
Date:   Wed Dec 27 15:09:42 2017 +1300

Bug 1740208: Fetch related view for artefacts we can see

Fix the way we find the related views now that we don't have a 'view'
type to restrict to. We can achieve this via the internal '_id' value
as that is a combination of old type and id values.

Also strip tags except the <span> one from highlighted description code
in case there is bad html/js in there.

behatnotneeded

Change-Id: I962accadb352b52dd72b61844f7fe0bd0d586ce2
Signed-off-by: Robert Lyon <robertl@xxxxxxxxxxxxxxx>

-- 
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/1740208

Title:
  Elasticsearch - display link to related view for artefacts in search
  results

Status in Mahara:
  Fix Committed

Bug description:
  Now that we use the 'doc' type in Elasticsearch 5+/6+ we need to
  adjust the views_by_artefact_acl_filter() so that it finds/returns the
  view(s) related to the artefact being displayed in the results

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


References