Author Topic: function addRow() problem  (Read 688 times)

0 Members and 1 Guest are viewing this topic.

JSPASH

  • Guest
function addRow() problem
on: Tue, 25. February 2003 - 12:19:32
According to the docs addRow takes an optional argument 'loopname'.  But when I leave this out, nothing much happens.  Also, a VT_WARNING_LOOP_NOT_SET error is supposed to be raised, and this is not happening.

I can get the code to work by passing 'loopname', but I just don't want to. Extra typing and all that.

Is anyone else experiencing this, or am I just being daft?

releasedj

  • Guest
function addRow() problem
Reply #1 on: Tue, 25. February 2003 - 14:38:03
This is a bug which has been fixed in CVS.

You can download the latest version from CVS by clicking here.

Alternatively, in vlibTemplate.php, goto the addRow function and change the first line from:

Code: [Select]

if !$loopname $loopname = $this-_currloopnamecount$this-_currloopname-1;



.. to :

Code: [Select]

if !$loopname $loopname = end$this-_currloopname;



That should resolve the problem.


Regards,

Kelvin