diff --git a/administrator/components/com_content/forms/filter_articles.xml b/administrator/components/com_content/forms/filter_articles.xml
index 73c1bb84e6f34..5bc5cf786f44c 100644
--- a/administrator/components/com_content/forms/filter_articles.xml
+++ b/administrator/components/com_content/forms/filter_articles.xml
@@ -76,6 +76,7 @@
onchange="this.form.submit();"
>
+
getState('filter.featured');
- if (in_array($featured, ['0','1']))
+ if (\in_array($featured, ['0','1']))
{
$featured = (int) $featured;
$query->where($db->quoteName('a.featured') . ' = :featured')
@@ -462,6 +462,14 @@ protected function getListQuery()
}
elseif (is_array($authorId))
{
+ // Check to see if by_me is in the array
+ if (\in_array('by_me', $authorId))
+
+ // Replace by_me with the current user id in the array
+ {
+ $authorId['by_me'] = $user->id;
+ }
+
$authorId = ArrayHelper::toInteger($authorId);
$query->whereIn($db->quoteName('a.created_by'), $authorId);
}
diff --git a/administrator/components/com_content/tmpl/articles/default.xml b/administrator/components/com_content/tmpl/articles/default.xml
index 79885752f859c..c0f6b39be802d 100644
--- a/administrator/components/com_content/tmpl/articles/default.xml
+++ b/administrator/components/com_content/tmpl/articles/default.xml
@@ -43,9 +43,10 @@
multiple="true"
layout="joomla.form.field.list-fancy-select"
class="multipleAuthors"
- filter="intarray"
+ filter="array"
>
+