Categories > TinyButStrong general >

OOP MergeField : prb with empty fields

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: achille
Date: 2005-04-19
Time: 13:33

OOP MergeField : prb with empty fields

Hi,
I'm playing with brand new 2.02 and trying to do :

$this->MergeField('job',$this->data);

$this->data is an object with the fields of a db row (created with        
$this->data =  $this->get_row($sql);
)
works fine if the field has a value, but if it's null, tbs displays the field name instead…

What's wrong ?

thx by advance.
By: achille
Date: 2005-04-19
Time: 13:36

Re: OOP MergeField : prb with empty fields

One addition :
It is doing so (display name rather than empty content) when I have a ;noerr option.
Otherwise, I have the regular error mssg.

sorry for double posting…
By: Skrol29
Date: 2005-04-19
Time: 14:08

Re: OOP MergeField : prb with empty fields

hi Achille,

I can't reproduce your bug.
Can you post or send a snippet ? Including the HTML part.