In the .4 version of the portal I used a profile in my
own object subclassed from Portal::Objects::Base. The
profile used a regexp of
comment => qr/[^"]/
to validate that the comment would not have quotes in it.
Everything works properly except printForm. the
printform step would only show the first character of
the comment field.
printhtml and printxml did not have this problem. I i
print the data field after print form all the data is
still there.
Something in the printForm step is modifying the data
before printing it.
I fixed it by adding a * to the regexp but the data
validation step should NOT be modifying the data, and
definitely not when doing a print form.
does this method allow the user to do substitution
regexps in addition to the validation regex? . . .
Logged In: YES
user_id=236631
I ran into this again today. This time I couldn't work
around it. This is the regex
total => qr/^\d+(\.?)\d*$/,
and the value is 100
It is getting chopped to 10 when printed in a form. It does
it whether -ReadOnly is 1 or 0. It still does it when I
change the value to 100.0
This is becoming a real problem so this bug needs elevating.
Logged In: YES
user_id=236631
I'm sorry. this last time around i was comparing to
different data sets. so this bug did NOt hit me again. I
am leaving it at 7 because it will need to be fixed before
xiwa release.