Bug parsing zeroes on email

Moderator: crythias

Locked
nublaii
Znuny newbie
Posts: 2
Joined: 11 Feb 2015, 17:27
Znuny Version: 4.0.5

Bug parsing zeroes on email

Post by nublaii »

I have just setup my first installation of OTRS and I was setting up my first filtering when I found a 'possible' bug:

When the regex matches a zero (as in '0') and I try to assign it to a DynamicField (type text) using '[***]' I get an empty value (maybe it believes it's NULL??)

The actual regex works:

Code: Select all

Node users: (.*?)\,
And what I'm parsing on the body:If I have a '1' it works fine

Code: Select all

"...3.250. Node users: 1,  Backend use..."
log:

Code: Select all

Filter: 'variable name 4' Set param 'X-OTRS-DynamicField-variable4' to '1' 
If I have a '0' OTRS doesn't see a value

Code: Select all

"...3.250. Node users: 0,  Backend use..."
log:

Code: Select all

Filter: 'variable name 4' Set param 'X-OTRS-DynamicField-variable4' to ''
Locked