View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
18058 | Bug reports | Other | public | 2022-04-27 20:49 | 2023-05-18 00:11 |
Reporter | gabrieljenik | Assigned To | gabrieljenik | ||
Priority | none | Severity | partial_block | ||
Status | feedback | Resolution | open | ||
Product Version | 5.3.x | ||||
Summary | 18058: Some survey attributes use the empty value for N and confuses inheritance rules | ||||
Description | This is a followup of 18050. | ||||
Tags | No tags attached. | ||||
Bug heat | 6 | ||||
Complete LimeSurvey version number (& build) | 5.3.11 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | |||||
Database type & version | n/a | ||||
Server OS (if known) | |||||
Webserver software & version (if known) | |||||
PHP Version | n/a | ||||
child of | 18050 | closed | gabrieljenik | Admin notification email sent out even when disabled |
Since survey settings inheritance have been introduced, empty attributes have always been inherited. In those cases, the inheritance rules get confused. Is the attribute empty because it should be inherited or because it is deactivated? |
|
I thought in this case the field would store the value 'inherit'. |
|
I really think we must move inherit to null in database. Maybe we can reproduce with some array_filter ? |
|
The solution I uploaded is a temporary solution. Right now the buttons are "Inherit On", "Inherit Off". I think the best and the less error prone is alternative B. |
|
Not sure I follow. Isn't that a different discussion? |
|
It's exactly the same discussion :) "" or 0 still return "" or 0 Then code can test if(!attribute) { } A quick edit on https://github.com/LimeSurvey/LimeSurvey/pull/2370/files#diff-1a1aff57bf56ce79a03058f0d5bc46f25b3f768b3bc41b53bdcd0b07959ced90R469 private function shouldInherit($attribute) Add || is_null($this->oOptions->{$attribute}) at line 479 |
|
I think it is a different discussion: A much bigger one! With more impact :)
This would be much more error prone when thinking of importing/exporting files. Null could be easliy lost. I just want to fix it for this attributes with the tools we already have |
|
You make it here : https://github.com/LimeSurvey/LimeSurvey/pull/2412/files null/not set => inherit. And i think it's the best way
It's exactly my point : use is_null or !isset … for inherit, not "I" or 'inherit' or … etc … |
|
Discussion on going |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2022-04-27 20:49 | gabrieljenik | New Issue | |
2022-04-27 20:49 | gabrieljenik | Issue generated from: 18050 | |
2022-04-27 20:49 | gabrieljenik | Note Added: 69268 | |
2022-04-27 20:49 | gabrieljenik | Note Added: 69269 | |
2022-04-27 20:49 | gabrieljenik | Note Added: 69270 | |
2022-04-27 20:49 | guest | Bug heat | 2 => 6 |
2022-04-27 20:49 | gabrieljenik | Bug heat | 6 => 2 |
2022-04-27 20:49 | guest | Bug heat | 2 => 6 |
2022-04-27 20:49 | gabrieljenik | Note Added: 69271 | |
2022-04-27 20:49 | gabrieljenik | Bug heat | 6 => 2 |
2022-04-27 20:49 | gabrieljenik | Note Added: 69272 | |
2022-04-27 20:49 | gabrieljenik | Relationship added | child of 18050 |
2022-04-27 20:49 | guest | Bug heat | 2 => 6 |
2022-04-27 20:49 | gabrieljenik | Note Edited: 69268 | |
2022-04-27 20:49 | gabrieljenik | Note Edited: 69268 | |
2022-04-28 09:16 | DenisChenu | Note Added: 69278 | |
2022-04-28 09:17 | DenisChenu | Note Edited: 69278 | |
2022-04-28 09:18 | DenisChenu | Note Edited: 69278 | |
2022-04-28 10:36 | galads | Assigned To | => gabrieljenik |
2022-04-28 10:36 | galads | Status | new => assigned |
2022-05-12 21:55 | gabrieljenik | Note Added: 69618 | |
2022-05-13 08:51 | DenisChenu | Note Added: 69622 | |
2023-05-18 00:11 | gabrieljenik | Status | assigned => feedback |
2023-05-18 00:11 | gabrieljenik | Note Added: 75069 |