diff --git a/code/ThumbnailStripField.php b/code/ThumbnailStripField.php index bd81f7c4..ed4eb758 100755 --- a/code/ThumbnailStripField.php +++ b/code/ThumbnailStripField.php @@ -54,7 +54,7 @@ class ThumbnailStripField extends FormField { } else { $whereSQL = "\"ParentID\" = 0"; if($searchText) { - $whereSQL = " AND \"Filename\" LIKE '%$searchText%'"; + $whereSQL .= " AND \"Filename\" LIKE '%$searchText%'"; } $images = DataObject::get('Image', $whereSQL, 'Title');