Page 1 of 1

Re: Route is called twice with showtemplate=false ?

Posted: Tue Mar 12, 2013 3:44 pm
by calguy1000
This bug is fixed for CMSMS 1.11.5.

In the mean time, you could use a static boolean to make sure that your code isn't executed twice per request.

i.e:

Code: Select all

static $flag = FALSE;
if( $flag == FALSE ) { 
   // do stuff
   $flag = TRUE;
}

Re: Route is called twice with showtemplate=false ?

Posted: Wed Mar 20, 2013 5:54 pm
by atz6975
Hi I jump on the wagon....
I use Goran's post to use CGFeedback and Jquery.
Where shall I put the static trick?
re-re-edit : I'm not sure if I understand where to put it by myself....

Thanks for your help.

Re: Route is called twice with showtemplate=false ?

Posted: Sat Mar 23, 2013 6:20 pm
by atz6975
Fixed and tested with 1.11.5.
Thanks.