IDEMPIERE-2923 Fields with value starting with a single quote cannot be searched
This commit is contained in:
parent
4ea156784c
commit
f5da9f0721
|
@ -1025,11 +1025,11 @@ class Restriction implements Serializable
|
|||
// clean code
|
||||
if (Code instanceof String)
|
||||
{
|
||||
if (Code.toString().startsWith("'"))
|
||||
if (Code.toString().startsWith("'") && Code.toString().endsWith("'")) {
|
||||
Code = Code.toString().substring(1);
|
||||
if (Code.toString().endsWith("'"))
|
||||
Code = Code.toString().substring(0, Code.toString().length()-2);
|
||||
}
|
||||
}
|
||||
if (infoDisplay != null)
|
||||
InfoDisplay = infoDisplay.trim();
|
||||
else if (code != null)
|
||||
|
|
Loading…
Reference in New Issue