Explorar o código

Full text search shortcuts: allow the use of class names containing underscores and numbers (e.g. Processus métier: écarissage)

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@3189 a333f486-631f-4898-b8df-5754b55c2be0
romainq %!s(int64=11) %!d(string=hai) anos
pai
achega
6097ae9898
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      pages/UI.php

+ 1 - 1
pages/UI.php

@@ -539,7 +539,7 @@ try
 
 				// Check if a class name/label is supplied to limit the search
 				$sClassName = '';
-				if (preg_match('/^([a-zA-Z]+):(.+)$/', $sFullText, $aMatches))
+				if (preg_match('/^([^\"]+):(.+)$/', $sFullText, $aMatches))
 				{
 					$sClassName = $aMatches[1];
 					if (MetaModel::IsValidClass($sClassName))