Use db_like to escape quantity labels that might include spaces.

This commit is contained in:
paul121 2020-10-29 13:38:46 -07:00
parent 92f854b9be
commit 87fa04da99
1 changed files with 1 additions and 1 deletions

View File

@ -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.