bug bug ... I think I found a bug
4 posts by 2 authors in: Forums > CMS Builder
Last Post: March 21, 2008 (RSS)
By Berkowitz - March 18, 2008
hi,
I think i found a bug in your otherwise very good software [:)]. Whenever you have a number in the pageview php filename. For example department1Page.php it only shows that recordnumber and nothing else. I had a department1Page.php with several items in the listview. But it didn't matter wich one i clicked he always showed the first one in the list. When I changed it to departmentonePage.php the problem was solved. Maybe there's something in your code that thinks whenever he sees a number in the filename it's automaticly a recordnumber?
Best regards,
Berkowitz
I think i found a bug in your otherwise very good software [:)]. Whenever you have a number in the pageview php filename. For example department1Page.php it only shows that recordnumber and nothing else. I had a department1Page.php with several items in the listview. But it didn't matter wich one i clicked he always showed the first one in the list. When I changed it to departmentonePage.php the problem was solved. Maybe there's something in your code that thinks whenever he sees a number in the filename it's automaticly a recordnumber?
Best regards,
Berkowitz
Re: [Berkowitz] bug bug ... I think I found a bug
By Dave - March 18, 2008
That's a good find! Thanks for reporting that.
I've scheduled it on the list to be fixed for an upcoming version. Do you need a workaround for right now? If so let me know and I'll post something.
I've scheduled it on the list to be fixed for an upcoming version. Do you need a workaround for right now? If so let me know and I'll post something.
Dave Edis - Senior Developer
interactivetools.com
interactivetools.com
Re: [Berkowitz] bug bug ... I think I found a bug
By Dave - March 20, 2008
I think I have a fix for this. Can you test it out for us? Edit /lib/viewer_functions.php and search for "QUERY_STRING". Add this code above the line you find:
Let me know if that fixes it.
if (@$_SERVER["PATH_INFO"] == @$_SERVER["PHP_SELF"]) { $_SERVER["PATH_INFO"] = ""; }
$urlDataFields = array(@$_SERVER["PATH_INFO"], $_SERVER["QUERY_STRING"]);
Let me know if that fixes it.
Dave Edis - Senior Developer
interactivetools.com
interactivetools.com
Re: [Dave] bug bug ... I think I found a bug
By Berkowitz - March 21, 2008
hi,
yes that seems to be doing the trick. I added your code line en tested it and it works fine now. Thanks for the fast fix. Saved me alot of thinking about re-ordering the Items.
Berkowitz.
yes that seems to be doing the trick. I added your code line en tested it and it works fine now. Thanks for the fast fix. Saved me alot of thinking about re-ordering the Items.
Berkowitz.