Closed silverstripe-issues closed 11 years ago
comment by: camfindlay created at: 2012-11-29
I can replicate this issue too... has just been brought up by a client.
Is there perhaps missing JS there that is present in the "Files" section of the CMS?
still an issue in ss 3.0.5
This fixes the issue for me:
in UploadField_SelectHandler::getListField()
after
$files = DataList::create($baseClass)->filter('ParentID', $folderID);
add
if(isset($_REQUEST['filter'])) { $filters = Convert::raw2sql($_REQUEST['filter']); foreach($filters as $name => $value) { $files->where("$name LIKE '%$value%'"); } }
Hi Martijn,
In which file do you add this code?
thanx, guuy
On Mon, Apr 22, 2013 at 2:33 PM, Martijn notifications@github.com wrote:
This fixes the issue for me:
in UploadField_SelectHandler::getListField()
after
$files = DataList::create($baseClass)->filter('ParentID', $folderID);
add
if(isset($_REQUEST['filter'])) { $filters = Convert::raw2sql($_REQUEST['filter']); foreach($filters as $name => $value) { $files->where("$name LIKE '%$value%'"); } }
— Reply to this email directly or view it on GitHubhttps://github.com/silverstripe/sapphire/issues/1624#issuecomment-16782989 .
i 've put it in framework/forms/uploadfield.php... but doesn't change a thing for me...
File UploadField.php Class UploadField_SelectHandler function getListField()
around rule 965
found it, but doesn't change a thing... am i missing something?
I have the same issues.
Seems fixed in the latest 3.1.x-dev version
On Fri, Jun 14, 2013 at 3:01 PM, Mario notifications@github.com wrote:
I have the same issues.
— Reply to this email directly or view it on GitHubhttps://github.com/silverstripe/silverstripe-framework/issues/1624#issuecomment-19455671 .
created by: @guyvanbael (guy.van.bael) created at: 2012-10-23 original ticket: http://open.silverstripe.org/ticket/7968
I'm using ss3.0.2 and created a pagetype with a dataobjet which contains a title and an image. When i use the uploadfield and wish to choose an image that has already been uploaded, i get the complete list from the files in the directory, but trying to filter that list always returns ALL the images in the directory. The filter doesn't have any effect.