Use db_like to escape quantity labels that might include spaces.
This commit is contained in:
parent
92f854b9be
commit
87fa04da99
|
@ -317,7 +317,7 @@ function farm_quantity_log_query_add_filters(&$query, $measure = NULL, $label =
|
|||
}
|
||||
}
|
||||
if (!is_null($label)) {
|
||||
$label = db_escape_field($label);
|
||||
$label = db_like($label);
|
||||
}
|
||||
|
||||
// Add the log ID field.
|
||||
|
|
Loading…
Reference in New Issue