Closed (fixed)
Project:
Asset
Version:
5.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 May 2008 at 19:01 UTC
Updated:
8 Aug 2008 at 07:09 UTC
Currently working on windows without patch functionallity so I just post some code:
...
function asset_wizard_browse($asset = NULL) {
...
if ($config['allowed_types']) {
foreach ($config['allowed_types'] as $type) {
if ($type) {
$types[] = $type;
}
}
if ($types) {
$query .= ' AND type IN ("%s")';
$args[] = implode('","', $types);
}
}
...
%s replacement isn't done correctly, this would be a solution:
...
function asset_wizard_browse($asset = NULL) {
...
if ($config['allowed_types']) {
foreach ($config['allowed_types'] as $type) {
if ($type) {
$types[] = "'%s'";
$args[] = $type;
}
}
if ($types) {
$query .= " AND type IN (". implode(',', $types) .")";
$args[] = implode('","', $types);
}
}
...
Comments
Comment #1
wmostrey commentedAsset 5.x-2 has been discontinued, please use 5.x-1.