mirror of
				https://github.com/TheAnachronism/docspell.git
				synced 2025-11-03 18:00:11 +00:00 
			
		
		
		
	Fix like search for custom fields
This commit is contained in:
		@@ -232,7 +232,7 @@ object ItemQueryGenerator {
 | 
			
		||||
  def itemsWithCustomField(coll: Ident, field: String, op: QOp, value: String): Select = {
 | 
			
		||||
    val cf  = RCustomField.as("cf")
 | 
			
		||||
    val cfv = RCustomFieldValue.as("cfv")
 | 
			
		||||
    val v   = if (op == QOp.LowerLike) value.toLowerCase else value
 | 
			
		||||
    val v   = if (op == QOp.LowerLike) QueryWildcard.lower(value) else value
 | 
			
		||||
    Select(
 | 
			
		||||
      select(cfv.itemId),
 | 
			
		||||
      from(cfv).innerJoin(cf, cf.id === cfv.field),
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user