View Issue Details

IDProjectCategoryView StatusLast Update
18996DevelopmentSurvey editingpublic2026-11-20 16:39
ReporterDenisChenu Assigned To 
PrioritynoneSeverityminor 
Status acknowledgedResolutionopen 
Summary18996: Move admin/Database controller to specific controller
Description

admlin/Database do action on Survey : must be in https://github.com/LimeSurvey/LimeSurvey/blob/master/application/controllers/SurveyAdministrationController.php

Steps To Reproduce

Search for all action done in Survey administration in SurveyAdministrationController

Lack of update

TagsNo tags attached.

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2026-11-20 16:39

administrator   ~87842

Current state (master, 2026-11): admin/Database::index() only dispatches three POST actions:

  • updatedefaultvalues (form in questionAdministration/editdefaultvalues.php): saves question default values. Belongs in QuestionAdministrationController, next to actionEditdefaultvalues().
  • updatesurveylocalesettings (survey text elements and other settings pages): saves through SurveyAggregateService. Belongs in SurveyAdministrationController.
  • updatesurveylocalesettings_generalsettings (General settings page): saves through SurveyAggregateService. Belongs in SurveyAdministrationController.

The settings logic already lives in SurveyAggregateService, so the new controller actions stay thin. The permission checks must be kept (surveycontent/update for default values, surveylocale/update or surveysettings/update for the settings).

The two settings action names are stored in surveymenu_entries (LsDefaultDataSets, Update_429), and editLocalSettings_main_view.php builds the form URL as admin/database/index/<action>. Either map them in the view, or add a DB update that rewrites the menu entries. Plugins may still post to admin/database, so keeping it as a deprecated forwarding stub would be safer for develop-minor; removing it is a develop-major change.

Issue History

Date Modified Username Field Change
2023-07-31 08:29 DenisChenu New Issue
2023-07-31 08:29 DenisChenu Summary Move adminDatabase controller to specific controller => Move admin/Database controller to specific controller
2026-11-19 22:50 c_schmitz Status new => acknowledged
2026-11-20 10:33 c_schmitz Category Survey Design => (No Category)
2026-11-20 16:39 c_schmitz Note Added: 87842
2026-11-20 16:39 c_schmitz Bug heat 0 => 2
2026-11-20 16:39 c_schmitz Project Bug reports => Development
2026-11-20 16:39 c_schmitz Category (No Category) => Survey editing