Commit a2627eb1 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Don't list profile views when choosing templates to copy

parent 6d9490ca
......@@ -1532,8 +1532,8 @@ class View {
$loggedin = $USER->is_logged_in();
$viewerid = $USER->get('id');
$where = '
WHERE TRUE';
$where = "
WHERE v.type != 'profile'";
if ($ownedby) {
$where .= ' AND v.' . self::owner_sql($ownedby);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment