View Issue Details

IDProjectCategoryView StatusLast Update
0036164mantisbtadministrationpublic2025-07-23 06:06
Reporterdregad Assigned Todregad  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Target Version2.27.2Fixed in Version2.27.2 
Summary0036164: Impossible to delete a global config defined in the database
Description

config_delete() prevents deleting configs defined in $g_global_settings.

This does not make sense: if they are not allowed to be present in the database, then it should be OK to remove them from it.

Additional Information

This situation can happen when a config that was not initially defined as global is later added to $g_global_settings.

The Admin Checks should detect this.

TagsNo tags attached.

Relationships

related to 0035915 resolveddregad Updating a global config yields incorrect error message 

Activities

Related Changesets

MantisBT: master-2.27 cf28aca3

2025-05-05 13:17

dregad


Details Diff
Allow deleting a Global config option

config_delete() prevents deleting configs defined in $g_global_settings.
This does not make sense: if they are not allowed to be present in the
database, then it should be OK to remove them.

This situation can happen, when a config that was not initially defined
as global, is later added to the $g_global_settings.

Fixes 0036164
Affected Issues
0036164
mod - core/commands/ConfigsSetCommand.php Diff File
mod - core/config_api.php Diff File

MantisBT: master-2.27 10366604

2025-05-05 13:17

dregad


Details Diff
Add admin check for global configs defined in DB

Fixes 0036164
Affected Issues
0036164
mod - admin/check/check_config_inc.php Diff File