View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
09925Bug reportsOtherpublic2016-02-06 00:35
Reporteranroba Assigned Toollehar  
PrioritynormalSeveritypartial_block 
Status closedResolutionfixed 
Fixed in Version2.50.x 
Summary09925: Template allocation failure after deleting default template.
Description

When default template is deleted, it is assigned by default the first template in alphabetical order from /admin/globalsettings and change does not apply on DB.

Steps To Reproduce
  • Create new template "template_new"
  • Assign "template_new" as new default template.
  • Create new survey associated to "template_new"
  • Verify change in DB --> table "settings_global" --> defaulttemplate
  • Delete new default template
  • Survey is associated to "default" template
  • New default template in /admin/globalsettings = the first template in alphabetical order ???
  • Change in DB --> table "settings_global" --> defaulttemplate does not apply.
    (psql (9.1.18))

Surveys whit new default template assigned appear with "default" template, but in /admin/globalsettings = the first template in alphabetical order and in DB --> table "settings_global" --> defaulttemplate = "template_new"

Additional Information

After clearing the default template must be assigned an existing template (for example "default") to the field DB "defaulttemplate".

Surveys assigned to the deleted template should be configured with the new default template.

TagsNo tags attached.
Bug heat6
Complete LimeSurvey version number (& build)
I will donate to the project if issue is resolved
Browser
Database type & version
Server OS (if known)
Webserver software & version (if known)
PHP Version

Users monitoring this issue

aesteban

Activities

ollehar

ollehar

2016-02-05 14:31

administrator   ~34629

I stumble upon another bug here.

  1. Create new template
  2. Set new template as global default
  3. Delete new template
  4. Error: Undefined index: copy_of_default
    /var/www/lime25/limesurvey/application/views/admin/templates/templatesummary_view.php(13)
    <?php if (!is_writable($templates[$templatename])):?>
ollehar

ollehar

2016-02-05 15:57

administrator   ~34630

Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=17168

c_schmitz

c_schmitz

2016-02-06 00:35

administrator   ~34653

2.50+ Build 160206 released

Related Changesets

LimeSurvey: master 9dcd18a9

2016-02-05 15:56

ollehar


Details Diff
Fixed issue 09925: Check if deleted template is the same as global default template Affected Issues
09925
mod - application/controllers/admin/templates.php Diff File

Issue History

Date Modified Username Field Change
2015-09-28 17:07 anroba New Issue
2015-09-29 10:25 aesteban Issue Monitored: aesteban
2016-02-05 08:36 DenisChenu Project Development => Bug reports
2016-02-05 08:36 DenisChenu Category Templates => Other issues
2016-02-05 14:06 ollehar Assigned To => ollehar
2016-02-05 14:06 ollehar Status new => assigned
2016-02-05 14:31 ollehar Note Added: 34629
2016-02-05 15:57 ollehar Changeset attached => LimeSurvey master 9dcd18a9
2016-02-05 15:57 ollehar Note Added: 34630
2016-02-05 15:57 ollehar Resolution open => fixed
2016-02-05 15:57 ollehar Status assigned => resolved
2016-02-05 15:57 ollehar Fixed in Version => 2.5
2016-02-06 00:35 c_schmitz Note Added: 34653
2016-02-06 00:35 c_schmitz Status resolved => closed
2021-08-06 01:32 guest Bug heat 4 => 6