CMS MADE SIMPLE FORGE

Form Browser

 

[#2887] List template does not show all fields (solved probably)

avatar
Created By: Eugène Broeren (broere)
Date Submitted: Fri Jan 16 08:37:58 -0500 2009

Assigned To: Samuel Goldstein (sjg)
Version: v1.1
CMSMS Version: None
Severity: None
Resolution: Fixed
State: Closed
Summary:
List template does not show all fields (solved probably)
Detailed Description:
Hello,

I just posted this message:  

http://forum.cmsmadesimple.org/index.php/topic,27495.msg142397.html#msg142397

I think it's a bug, and found the solution.

Tested on 1.4.1 and 1.5.1
formbrowser: Version: 0.2.3

Please correct me if i'm wrong.

Regards
Eugène Broeren

-------------------------

Hello,

There is a bug in the "Listtemplate" tab.
I noticed also unexpected behavior. 

I found out that alll the variables were stored in the database because i
checked the export-tab (export to csv).

After some research i find out that the variable $count
FormBrowser/classes/Browser.class.php has something to do with it the following
issue.

Please correct me if i am wrong.

----------------------------------
>> $mod_ptr->smarty->assign('count',count($response->names)+1)
and 
>> $mod_ptr->smarty->assign('fieldcount',count($names));
----------------------------------

Solution:

Open the listtemplate - tab and change the following lines: 

29 from		{section name=namelist start=0 loop=$count}
29 to		{section name=namelist start=0 loop=$fieldcount}

41 from		{section name=namelist start=0 loop=$count}
41 to		{section name=namelist start=0 loop=$fieldcount}

Now it works for me !


Eugène Broeren


History

Comments
avatar
Date: 2009-02-23 04:51
Posted By: Ronald Smit (ronaldsmit)

This solution works for me too! Thx!
      
avatar
Date: 2010-05-27 00:53
Posted By: Ryan Foster (RytoEX)

A friend and I just struggled over this very problem for about 2 hours, only to
accidentally stumble upon a "solution" of our own, and THEN finding this bug. 
We ended up changing "$count" to "$fieldcount" in the FormBrowser templates, and
that seemed to work.

This was with FormBrowser 0.3, so the bug is still present.
      
avatar
Date: 2011-01-15 00:43
Posted By: Ryan Foster (RytoEX)

Looks like this has been fixed in:
Revision 110 on July 17, 2010 at 20:36:27
Revision 116 on July 21, 2010 at 13:41:57

Marking this Fixed and closing this bug.  Feel free to reopen if I've closed it
prematurely.
      
Updates

Updated: 2011-01-15 00:43
resolution_id: 5 => 7
state: Open => Closed

Updated: 2009-01-16 08:38
resolution_id: => 5
assigned_to_id: 2304 => 110