View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
11808 | Feature requests | Theme editor | public | 2016-10-18 01:48 | 2018-10-15 07:52 |
Reporter | DenisChenu | Assigned To | |||
Priority | none | Severity | feature | ||
Status | closed | Resolution | reopened | ||
Product Version | 3.0 | ||||
Fixed in Version | 3.0 | ||||
Summary | 11808: Fix template when update and when import | ||||
Description | In https://bugs.limesurvey.org/view.php?id=11797 : 2 pstpl file was included. | ||||
Tags | answers_html | ||||
Bug heat | 4 | ||||
Story point estimate | |||||
Users affected % | |||||
Alternative : fix it only when edit BUT : protect file access |
|
Idea :
After we can fix/update this funtion, move to a lib or an helper more easily (for parent-template system). |
|
Just a feedback on the last idea, because it's a lot related to the next evolution (parent template / child template) where we need a function to call the final pstpl file |
|
Quick summary:
1: fixed for update / import But 2 and 3 are really linked with future feature, and take a littlme PHP script time (better with 2, 2rd take a lot more time (test file exist) |
|
This is only for retro-compatibility with 2.5 right? |
|
Yes : but seeing a 'broken css' is different to seeing a white page. Maybe : when load template configuration : if the template is not valid : return it to default ? I do something in 2.06 to move to default if template don't exist (when you rename a template via FTP) : https://github.com/LimeSurvey/LimeSurvey/blob/master/application/models/Template.php#L67 Think we can use same system and fix it here ? |
|
Just here in fact : https://github.com/LimeSurvey/LimeSurvey/blob/master/application/models/Template.php#L77 And : we can log it as error for admin user. |
|
"but seeing a 'broken css' is different to seeing a white page." I'd say that the template configuration model is the right place to do it. Example for the XML file: |
|
Yes : add a condition here : https://github.com/LimeSurvey/LimeSurvey/blob/master/application/models/TemplateConfiguration.php#L85 |
|
In fact : replace condition |
|
It would be easy to do: $this->hasNewPstpl = (string) is_file($this->path.DIRECTORY_SEPARATOR.'form.pstpl'); if (!$this->hasNewPstpl){....} |
|
Yes , but here : you want fix template when loading config Then maybe : a function if (!$this->hasPstpl(filename)){ |
|
Fix committed to develop branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=21329 |
|
Done and tested with old 2.50 default template |
|
Must be tested now, and surely refix it (or not). |
|
Won't fix … |
|
LimeSurvey: develop 1888b37c 2016-11-10 21:10 Details Diff |
New feature 11808: add template apiVersion and fix old template Dev: Start with api version 3 : follow LS version. Dev: fix template according to API : for old : add needed pstpl file Dev: add survey +fontawesome to template package (and add it if api < 3) Dev: Todo : add an alert / log for admin user |
Affected Issues 11808 |
|
mod - application/helpers/common_helper.php | Diff File | ||
mod - application/models/TemplateConfiguration.php | Diff File | ||
mod - application/views/layouts/public.php | Diff File | ||
mod - templates/default/config.xml | Diff File | ||
mod - templates/minimal-config.xml | Diff File | ||
LimeSurvey: develop 3de1ed7f 2016-11-11 14:08 Details Diff |
Dev: 11808 : show warning for survey manager when using a 'old' template Dev: API is an integer (3 actually) Dev: move apiVersion to private : don't think a plugin must be allowed to update it ? |
Affected Issues 11808 |
|
mod - application/config/version.php | Diff File | ||
mod - application/controllers/admin/surveyadmin.php | Diff File | ||
mod - application/controllers/admin/templates.php | Diff File | ||
mod - application/models/TemplateConfiguration.php | Diff File | ||
mod - application/views/admin/survey/surveySummary_view.php | Diff File | ||
mod - application/views/admin/templates/templateeditorbar_view.php | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2016-10-18 01:48 | DenisChenu | New Issue | |
2016-10-18 01:48 | DenisChenu | Status | new => assigned |
2016-10-18 01:48 | DenisChenu | Assigned To | => DenisChenu |
2016-10-18 01:48 | DenisChenu | Product Version | => 3.0 |
2016-10-18 02:04 | DenisChenu | Tag Attached: answers_html | |
2016-10-18 23:47 | DenisChenu | Note Added: 41454 | |
2016-10-19 09:56 | DenisChenu | Note Added: 41457 | |
2016-10-19 09:57 | DenisChenu | Assigned To | DenisChenu => LouisGac |
2016-10-19 09:57 | DenisChenu | Status | assigned => feedback |
2016-10-19 09:57 | DenisChenu | Note Added: 41458 | |
2016-10-19 09:57 | DenisChenu | Assigned To | LouisGac => DenisChenu |
2016-10-19 10:07 | DenisChenu | Note Added: 41459 | |
2016-10-19 10:09 | DenisChenu | Note Edited: 41459 | |
2016-10-19 10:28 |
|
Note Added: 41465 | |
2016-10-19 10:33 | DenisChenu | Note Added: 41469 | |
2016-10-19 10:34 | DenisChenu | Note Added: 41470 | |
2016-10-19 10:35 | DenisChenu | Note Edited: 41470 | |
2016-10-19 10:38 |
|
Note Added: 41472 | |
2016-10-19 10:43 | DenisChenu | Note Added: 41473 | |
2016-10-19 10:44 | DenisChenu | Note Added: 41474 | |
2016-10-19 10:44 | DenisChenu | Status | feedback => assigned |
2016-10-19 10:48 |
|
Note Added: 41475 | |
2016-10-19 10:54 | DenisChenu | Note Added: 41476 | |
2016-11-10 20:13 | DenisChenu | Changeset attached | => LimeSurvey develop 1888b37c |
2016-11-10 20:13 | DenisChenu | Note Added: 41838 | |
2016-11-10 20:13 | DenisChenu | Resolution | open => fixed |
2016-11-10 20:15 | DenisChenu | Status | assigned => resolved |
2016-11-10 20:15 | DenisChenu | Fixed in Version | => 3.0 |
2016-11-10 20:15 | DenisChenu | Note Added: 41839 | |
2016-11-11 13:11 | DenisChenu | Changeset attached | => LimeSurvey develop 3de1ed7f |
2017-07-19 11:25 | DenisChenu | Assigned To | DenisChenu => |
2017-07-19 11:25 | DenisChenu | Status | resolved => feedback |
2017-07-19 11:25 | DenisChenu | Resolution | fixed => reopened |
2017-07-19 11:25 | DenisChenu | Note Added: 44107 | |
2017-07-19 11:26 | DenisChenu | Assigned To | => DenisChenu |
2017-07-19 11:26 | DenisChenu | Status | feedback => new |
2017-07-19 11:26 | DenisChenu | Assigned To | DenisChenu => |
2018-10-15 07:52 | DenisChenu | Status | new => closed |
2018-10-15 07:52 | DenisChenu | Note Added: 49321 |