View Issue Details

This issue affects 1 person(s).
 0
IDProjectCategoryView StatusLast Update
17355Bug reportsOtherpublic2026-11-24 16:45
Reportergabrieljenik Assigned To 
PrioritynoneSeverityfeature 
Status closedResolutionfixed 
Summary17355: Code cleanup after attributeFetcher service
Description

We believe the following can be cleaned up after attributeFetcher() implementation.

Question model:

  • getAdvancedSettingsWithValues() should not be part of the Question AR

QuestionAttribute model

  • getQuestionAttributes() should not be part of the QuestionAttribute AR
  • addAdditionalAttributesFromExtendedTheme() is not in use anymore. Should be removed? Add a deprecation notice?
  • getQuestionAttributesSettings() is only used in TSVImportSurvey().
  • getAdvancedAttributesFromXml() is only used in QuestionAttribute::getQuestionAttributesSettings()
  • getGeneralAttibutesFromXml() is only used in QuestionAttribute::getQuestionAttributesSettings()

QuestionTheme model

  • getQuestionThemeAttributeValues() is not in use anymore. Should be removed? Add a deprecation notice?
  • getAdditionalAttrFromExtendedTheme() used in QuestionAttribute::addAdditionalAttributesFromExtendedTheme() and QuestionTheme::getQuestionThemeAttributeValues()

QuestionAttributeHelper should be used by:

  • TSVImportSurvey() (import_helper). Since it's a helper, injection is difficult.
TagsNo tags attached.
Bug heat0
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
Git branch / Pull Request URL

Relationships

related to 17261 closedgabrieljenik Create new code artifacts to handle QuestionAttributes fetching (& saving) 

Users monitoring this issue

There are no users monitoring this issue.

Activities

There are no notes attached to this issue.

Related Changesets

LimeSurvey: master 4d6ef19a

2026-11-24 16:44

c_schmitz


Details Diff
Dev Marked the unused question theme attribute methods as deprecated (issue 17355) Affected Issues
17355
mod - application/models/QuestionAttribute.php Diff File
mod - application/models/QuestionTheme.php Diff File

LimeSurvey: master 4a8e4143

2026-11-24 16:44

c_schmitz


Details Diff
Dev QuestionAttribute::getQuestionAttributesSettings() reads the attribute definitions from CoreQuestionAttributeProvider instead of its own copy of the config.xml reader (issue 17355) Affected Issues
17355
mod - application/models/QuestionAttribute.php Diff File
mod - tests/unit/models/QuestionAttributeTest.php Diff File

Issue History

Date Modified Username Field Change
2021-06-07 20:20 gabrieljenik New Issue
2021-06-07 20:20 gabrieljenik Status new => assigned
2021-06-07 20:20 gabrieljenik Assigned To => gabrieljenik
2021-06-07 20:20 gabrieljenik Issue generated from: 17261
2021-06-07 20:20 gabrieljenik Relationship added related to 17261
2021-06-07 20:20 gabrieljenik Assigned To gabrieljenik =>
2021-06-07 20:20 LimeBot Zoho Projects ID => 85781000000928001
2022-03-31 11:46 galads Zoho Project Synchronization Yes =>
2022-03-31 11:46 galads Zoho Projects ID 85781000000928001 =>
2026-11-24 16:45 c_schmitz Changeset attached => LimeSurvey master 4d6ef19a
2026-11-24 16:45 c_schmitz Changeset attached => LimeSurvey master 4a8e4143
2026-11-24 16:45 c_schmitz Status assigned => resolved
2026-11-24 16:45 c_schmitz Resolution open => fixed
2026-11-24 16:45 c_schmitz Status resolved => closed