[Rt-devel] [Patch] Handling "0" in Custom Fields

Otmar Lendl ol at bofh.priv.at
Tue Oct 13 10:45:58 EDT 2009


[RT 3.8.5]

FYI,

the Ticket/Modify.html display doesn't show simple "any value" custom field value if
that "any value" happens to be "0".

Fix:

In html/Elements/EditCustomFieldFreeform

change

<input name="<%$name%>" id="<%$name%>" size="<%$Cols%>" class="CF-<%$CustomField->id%>-Edit" value="<%$Default ? $Default : ''%>" />

to

<input name="<%$name%>" id="<%$name%>" size="<%$Cols%>" class="CF-<%$CustomField->id%>-Edit" value="<%defined($Default) ? $Default : ''%>" />

/ol
-- 
-=-  Otmar Lendl  --  ol at bofh.priv.at  --  http://lendl.priv.at/  -=-


More information about the Rt-devel mailing list