View Issue Details

IDProjectCategoryView StatusLast Update
0028562mantisbtadministrationpublic2023-10-31 16:32
Reporterdregad Assigned Todregad  
Status closedResolutionfixed 
Target Version2.26.0Fixed in Version2.26.0 
Summary0028562: Undefined constant ERROR_VERSION_NO_ACTION and missing matching error message

manage_proj_ver_copy.php triggers an ERROR_VERSION_NO_ACTION error when the copy action (to/from) is not specified, but

  1. the constant is not defined
  2. there is no corresponding error message in language strings

This flaw is present since the initial implementation of the feature (see 0008094).

TagsNo tags attached.


related to 0008094 closedvboctor Managing versions / release schedule accross multiple projects. 
child of 0030551 closeddregad Project Edit Page improvements 


Related Changesets

MantisBT: master 0c508242

2021-05-17 03:37


Details Diff

Since the error message is generic, and the constant is used in contexts
not related to Categories, it makes sense to use a generic name it too.

The constant's new name is ERROR_NO_COPY_ACTION.

The change has been reflected in the code and language files.

Issue 0028562
Affected Issues
mod - api/soap/mc_api.php Diff File
mod - core/constant_inc.php Diff File
mod - lang/strings_afrikaans.txt Diff File
mod - lang/strings_arabic.txt Diff File
mod - lang/strings_arabicegyptianspoken.txt Diff File
mod - lang/strings_belarusian_tarask.txt Diff File
mod - lang/strings_breton.txt Diff File
mod - lang/strings_bulgarian.txt Diff File
mod - lang/strings_catalan.txt Diff File
mod - lang/strings_chinese_simplified.txt Diff File
mod - lang/strings_chinese_traditional.txt Diff File
mod - lang/strings_czech.txt Diff File
mod - lang/strings_danish.txt Diff File
mod - lang/strings_dutch.txt Diff File
mod - lang/strings_english.txt Diff File
mod - lang/strings_estonian.txt Diff File
mod - lang/strings_finnish.txt Diff File
mod - lang/strings_french.txt Diff File
mod - lang/strings_galician.txt Diff File
mod - lang/strings_german.txt Diff File
mod - lang/strings_hebrew.txt Diff File
mod - lang/strings_hungarian.txt Diff File
mod - lang/strings_icelandic.txt Diff File
mod - lang/strings_interlingua.txt Diff File
mod - lang/strings_italian.txt Diff File
mod - lang/strings_japanese.txt Diff File
mod - lang/strings_korean.txt Diff File
mod - lang/strings_lithuanian.txt Diff File
mod - lang/strings_macedonian.txt Diff File
mod - lang/strings_norwegian_bokmal.txt Diff File
mod - lang/strings_occitan.txt Diff File
mod - lang/strings_persian.txt Diff File
mod - lang/strings_polish.txt Diff File
mod - lang/strings_portuguese_brazil.txt Diff File
mod - lang/strings_portuguese_standard.txt Diff File
mod - lang/strings_ripoarisch.txt Diff File
mod - lang/strings_romanian.txt Diff File
mod - lang/strings_russian.txt Diff File
mod - lang/strings_serbian.txt Diff File
mod - lang/strings_serbian_latin.txt Diff File
mod - lang/strings_slovak.txt Diff File
mod - lang/strings_slovene.txt Diff File
mod - lang/strings_spanish.txt Diff File
mod - lang/strings_swedish.txt Diff File
mod - lang/strings_swissgerman.txt Diff File
mod - lang/strings_tagalog.txt Diff File
mod - lang/strings_turkish.txt Diff File
mod - lang/strings_ukrainian.txt Diff File
mod - lang/strings_urdu.txt Diff File
mod - lang/strings_vietnamese.txt Diff File
mod - lang/strings_volapuk.txt Diff File
mod - manage_proj_cat_copy.php Diff File
mod - manage_proj_custom_field_copy.php Diff File
mod - manage_proj_user_copy.php Diff File

MantisBT: master e451f920

2021-05-17 05:01


Details Diff
Fix undefined constant error

manage_proj_ver_copy.php references an undefined error constant
ERROR_VERSION_NO_ACTION, causing an internal error to be triggered
if neither copy_from nor copy_to parameters are specified.

Replacing the missing constant by ERROR_NO_COPY_ACTION.

Fixes 0028562
Affected Issues
mod - manage_proj_ver_copy.php Diff File