Help - Search - Members - Calendar
Full Version: Default template selection not working
Big Red Spark Forums > Big Red Spark.com Forums > Unit Command Climate Assessment and Survey System (UCCASS)
ellis
the survey template selection does not stick when i save for that particular survey.
It switches back . despite saving this change.
I hope some one may have a possible answer.
I have changed the survey.ini file leaving the template option empty. .of course that was not the answer.
i love uccass.
thx
k
smackYYZ
QUOTE(ellis @ Dec 12 2007, 10:16 AM) *

the survey template selection does not stick when i save for that particular survey.
It switches back . despite saving this change.
I hope some one may have a possible answer.
I have changed the survey.ini file leaving the template option empty. .of course that was not the answer.
i love uccass.
thx
k


I too ran into this issue, when I created a new template. When I selected it in the Edit Survey and updated it defaulted to old value as selected, but if I looked in the database the data was correct. I traced it down to editsurvey.class.php now not being familiar with PHP I'm not sure how to correct the way the code is sorting the template directory names, but it appears that when line 829:
sort($this->data['templates']);
is executed, it is reordering the directory names but that the value $this->data['selected_template'][] is not following.

My easy fix was to comment out line 829 to stop the reordering, and that corrected the issue.

Mike
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.