{"ref":"refs/heads/fix-8582-default-category","push_id":54164571,"commits":[{"sha":"c78dfd2c581b76b7b081c3c44d327d4ab20f508a","author":{"email":"03b9a79ea6ea70eac9e50deb837e6f97435bac4f@merckgroup.com","name":"Damien Regad"},"url":"https://api.github.com/repos/dregad/mantisbt/commits/c78dfd2c581b76b7b081c3c44d327d4ab20f508a","message":"Fix #13684: undefined variable in admin/index.php\n\nVariable $t_version_suffix was referenced without initialization. It is\nnow set following the same logic as in html_footer().\n\nCommit also includes whitespace corrections."},{"sha":"5c73769e628c836f438da0963a2cde71be673860","author":{"email":"03b9a79ea6ea70eac9e50deb837e6f97435bac4f@merckgroup.com","name":"Damien Regad"},"url":"https://api.github.com/repos/dregad/mantisbt/commits/5c73769e628c836f438da0963a2cde71be673860","message":"New functions for default category in project api\n\nproject_get_default_category() returns the default category_id for the\nspecified (or the current) project. It also handles the ALL_PROJECTS\ncase. If the default category is undefined or invalid, the function\nreturns 0, except if the project has only 1 category, in which case it\nis used as default.\n\nproject_set_default_category() updates the project record with a new\ndefault category; for ALL_PROJECT, the value is stored in global config\n'default_category_for_moves'\n\nThis commit is a prerequisite to resolve #8582"},{"sha":"02700e87ca9caf75c6654b65bf014d411decfaf2","author":{"email":"03b9a79ea6ea70eac9e50deb837e6f97435bac4f@merckgroup.com","name":"Damien Regad"},"url":"https://api.github.com/repos/dregad/mantisbt/commits/02700e87ca9caf75c6654b65bf014d411decfaf2","message":"Pre-select default category in bug report page\n\nUse project_get_default_category() to preset the category selection\nlist with the current project's default.\n\nThis is part of the solution for #8582"},{"sha":"803080b070a4b40bbd94356d42aad8c030f55d60","author":{"email":"03b9a79ea6ea70eac9e50deb837e6f97435bac4f@merckgroup.com","name":"Damien Regad"},"url":"https://api.github.com/repos/dregad/mantisbt/commits/803080b070a4b40bbd94356d42aad8c030f55d60","message":"Allow admin to choose the default category\n\nThis commit introduces the possibility for the admin to set the default\ncategory, both globally and for specific projects, by means of a new\naction button in the categories list.\n\nFixes #8582"},{"sha":"3df1076cfa55b4a86246d104548ab32f3691b76b","author":{"email":"03b9a79ea6ea70eac9e50deb837e6f97435bac4f@merckgroup.com","name":"Damien Regad"},"url":"https://api.github.com/repos/dregad/mantisbt/commits/3df1076cfa55b4a86246d104548ab32f3691b76b","message":"Use global default category when creating new project"},{"sha":"be5e18f37e0f5c6bcbc152ff243240f902605c30","author":{"email":"03b9a79ea6ea70eac9e50deb837e6f97435bac4f@merckgroup.com","name":"Damien Regad"},"url":"https://api.github.com/repos/dregad/mantisbt/commits/be5e18f37e0f5c6bcbc152ff243240f902605c30","message":"New config options for empty and default Category\n\nA new option $g_use_default_category was added to allow the use of\ndefault categories.\n\n$g_allow_no_category has been renamed to $g_allow_empty_category, to\nreduce confusion due to the double negation.\n\nWhen combined, these two parameters give the administrator 4 distinct\nways of handling the Category field when creating new issues:\n\n - $g_allow_empty_category = OFF, $g_use_default_category = OFF\n   Category is mandatory, and the user must manually select it from the\n   list. This is the MantisBT default (preserves previous behavior).\n\n - $g_allow_empty_category = OFF, $g_use_default_category = ON\n   Category is preset to project default, and can't be empty\n   In this mode, the category is not mandatory.\n\n - $g_allow_empty_category = ON, $g_use_default_category = OFF\n   Category is preset to \"(No Category)\", project defaults are not used\n\n - $g_allow_empty_category = ON, $g_use_default_category = ON\n   Category is preset to project default, but user can change it to\n   \"(No Category)\"\n\nAffects #8582"},{"sha":"2ef3f370d04e2cbf4c79d8a408ad6c49fc3c0b3d","author":{"email":"03b9a79ea6ea70eac9e50deb837e6f97435bac4f@merckgroup.com","name":"Damien Regad"},"url":"https://api.github.com/repos/dregad/mantisbt/commits/2ef3f370d04e2cbf4c79d8a408ad6c49fc3c0b3d","message":"Update soap API to use new $g_allow_empty_category\n\n$g_allow_no_category has been renamed to $g_allow_empty_category in\ncommit b7e3ccde18cb6bd480cea3bbdab28cb6087593f9.\n\nThis implements the required changes in the SOAP api."}],"head":"2ef3f370d04e2cbf4c79d8a408ad6c49fc3c0b3d","size":7}