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