浏览代码

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 11 年之前
父节点
当前提交
6097ae9898
共有 1 个文件被更改,包括 1 次插入1 次删除
  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))