Changesets: MantisBT

release-2.27.1 e11a8edf

2025-03-01 18:13

dregad


Details Diff
Update Credits
mod - doc/CREDITS Diff File

release-2.27.1 be1f639a

2025-03-01 18:12

dregad


Details Diff
Update .mailmap
mod - .mailmap Diff File

master b9172717

2025-03-01 18:00

dregad


Details Diff
gpc_get_int() don't remove spaces in middle of string

Keep using preg_match() instead of calling filter_var() as the latter's
interpretation of what an integer is is too strict for our purposes
(e.g. `01` is not considered as an integer).

Code cleanup: remove unnecessary capturing group in the number
validation regex.

Fixes 0035525
Affected Issues
0035525
mod - core/gpc_api.php Diff File

master fb768e50

2025-03-01 17:51

dregad


Details Diff
Merge branch 'master-2.27'
mod - search.php Diff File
mod - core/gpc_api.php Diff File
mod - core/filter_form_api.php Diff File
mod - core/filter_api.php Diff File

master 7630b32c

2025-02-27 10:09

raspopov

Committer: dregad


Details Diff
Fix more issues detected by Nu Html Checker

In bug_update_page.php:

- Error: The first child `option` element of a `select` element with a
`required` attribute, and without a `multiple` attribute, and without
a `size` attribute whose value is greater than 1, must have either an
empty `value` attribute, or must have no text content.
- Error: Element `option` without attribute `label` must not be empty.

In bug_change_status_page.php:

- Error: Start tag `input` seen in `table`.
- Error: Element `option` without attribute `label` must not be empty.
- Error: End tag `div` seen, but there were open elements.
- Error: Unclosed element `fieldset`.

In bug_report_page.php:

- Error: Element `option` without attribute `label` must not be empty.
- Error: The value of the `for` attribute of the `label` element must be
the ID of a non-hidden form control.

In manage_user_create_page.php:

- Error: Start tag `fieldset` seen in `table`.
- Error: Unclosed element `div`.

In bug_view_inc.php (called via view.php):

- Error: Row 1 of a row group established by a `thead` element has no
cells beginning on it.
- Error: Element `option` without attribute `label` must not be empty.
mod - bug_change_status_page.php Diff File
mod - bug_report_page.php Diff File
mod - bug_update_page.php Diff File
mod - bug_view_inc.php Diff File
mod - core/print_api.php Diff File
mod - manage_user_create_page.php Diff File

master 52146e3c

2025-02-27 09:58

raspopov

Committer: dregad


Details Diff
Fix the name of an illegal custom attribute

Fix Nu Html Checker issue:
- Error: Attribute `url` not allowed on element `a` at this point.
mod - bug_update_page.php Diff File
mod - js/common.js Diff File

master ee6b1f65

2025-02-27 09:52

raspopov

Committer: dregad


Details Diff
Fix the page breaks in exported/printed reports

Restored pagination when printing in both HTML and DOC formats.
mod - print_all_bug_page_word.php Diff File

master 4fc3412c

2025-02-26 18:44

dregad


Details Diff
Merge branch 'master-2.27'
mod - set_project.php Diff File
mod - css/ace-mantis.css Diff File
mod - core/layout_api.php Diff File

master b155dbfb

2025-02-26 18:43

dregad


Details Diff
New API functions for date conversions

As requested in PR review, it is no longer possible to provide timestamp
(version date order) as an integer to REST API /projects/{{id}}/versions
endpoints.

It is worth noting that a Unix timestamp can technically still be given,
using the `@{integer}` syntax, since that is a valid format for the
DateTimeImmutable constructor. This could change in the future, if we
decide to only allow ISO-8601 format.

The datetime parsing and generation logic has been standardized in 2 new
date API functions:
- date_string_to_timestamp()
- date_timestamp_to_iso8601()

Use the new functions in:
- date_strtotime()
- ApiObjectFactory: methods datetime() and datetimeString();
add new dateStringToTimestamp() method.
- VersionAddCommand
- VersionUpdateCommand

Fixes 0034928
Affected Issues
0034928
mod - api/soap/mc_api.php Diff File
mod - core/commands/VersionAddCommand.php Diff File
mod - core/commands/VersionUpdateCommand.php Diff File
mod - core/date_api.php Diff File
mod - manage_proj_ver_update.php Diff File

master 10971ed1

2025-02-26 10:56

raspopov

Committer: dregad


Details Diff
Fix Nu Html Checker issues

Fix various Nu Html Checker issues in dropzone (print_api.php):

- Error: Element img is missing required attribute src.
- Error: An img element must have an alt attribute, except under certain
conditions.

In bug_view_inc.php:

- Error: Element tbody not allowed as child of element table in this
context.
- Error: Duplicate ID history.

In bug_update_page.php and bugnote_view_inc.php:

- Error: The width attribute on the td element is obsolete.
- Warning: A table row was 0 columns wide, which is less than the column
count established by the first row (6).
- Error: Element option without attribute label must not be empty.
- Error: Duplicate ID bugnotes.

In print_all_bug_page.php:

- Error: Stray end tag td.
- Error: Row 2 of a row group established by a tbody element has no
cells beginning on it.
- Warning: A table row was 10 columns wide and exceeded the column count
established by the first row (5).

In print_all_bug_page_word.php:

- Error: The width attribute on the td element is obsolete.
- Error: Row 2 of a row group established by a tbody element has no
cells beginning on it.
Affected Issues
0035644, 0035645
mod - bug_update_page.php Diff File
mod - bug_view_inc.php Diff File
mod - bugnote_view_inc.php Diff File
mod - core/print_api.php Diff File
mod - print_all_bug_page.php Diff File
mod - print_all_bug_page_word.php Diff File

master 457c72c7

2025-02-26 10:46

raspopov

Committer: dregad


Details Diff
Add a new function print_table_spacer()

To print table spacer with specified columns.

Fix Nu Html Checker issue in bug_view_inc.php:

- Error: Row * of a row group established by a tbody element has no
cells beginning on it.
mod - bug_update_page.php Diff File
mod - bug_view_inc.php Diff File
mod - bugnote_view_inc.php Diff File
mod - core/html_api.php Diff File
mod - core/print_api.php Diff File
mod - manage_overview_page.php Diff File
mod - print_all_bug_page.php Diff File
mod - print_all_bug_page_word.php Diff File

master-2.27 a58cf175

2025-02-26 10:29

raspopov


Details Diff
Fix a regression in the layout_api.php file

Fixes 0035493.

When the `nav-tabs` element is displayed, the active area of the project
selection buttons (displayed when `$g_show_project_menu_bar = ON`) is
overlapped because `nav-tabs` has relative positioning and is attached
to the top of the parent element.

Introduced in https://github.com/mantisbt/mantisbt/pull/2096/commits/4395fad8d05e3808f7820993ae42bea5f7b35eaf

Signed-off-by: raspopov <raspopov@cherubicsoft.com>
Affected Issues
0035493
mod - core/layout_api.php Diff File

master d4bede5c

2025-02-26 10:05

raspopov

Committer: dregad


Details Diff
Update html_print_logo() function

- Added support for link attributes.
- Fixed the element duplicate id in case the logo is inserted more than
once.
- Id replaced with class name.
- Inline style has been removed.
mod - core/html_api.php Diff File

master 5e2ff492

2025-02-26 09:56

raspopov

Committer: dregad


Details Diff
Restore html_print_logo() use in the sample
mod - docbook/Admin_Guide/en-US/config/html.xml Diff File

master-2.27 5dcb6cb1

2025-02-25 19:40

dregad


Details Diff
Fix Undefined array key with Plugin Filters

When following a permalink including a Plugin Filter field, search.php
throws an "Undefined array key" SYSTEM WARNING.

This is due to an incorrect default in gpc_get_*() calls to get the
filter value, introduced in commit a759e186f1f7b0e1f07a182b454131e8b5e6d020
(Issue 0025072).

Fixes 0035179
Affected Issues
0025072, 0035179
mod - search.php Diff File

master c1edaa4a

2025-02-25 19:29

dregad


Details Diff
Fix Argument must be of type array, null given

BugFilterQuery::build_prop_plugin_filters() initializes $t_params = null
instead of [], causing error in helper_convert_legacy_clause().

Regression introduced by c939e5574556a2986bdd23d2ba9369d03595c269.

Issue 0035215
Affected Issues
0035215
mod - core/classes/BugFilterQuery.class.php Diff File

master-2.27 cbfa41c5

2025-02-25 19:18

dregad


Details Diff
Fix styling of MantisFilter fields

Due to a missing type attribute or class in the input tags generated by
print_filter_plugin_field(), the filter field is displayed with
incorrect styling for FILTER_TYPE_STRING, FILTER_TYPE_INT and
FILTER_TYPE_BOOLEAN.

Fixes 0035471
Affected Issues
0035471
mod - core/filter_form_api.php Diff File

master e6dd655b

2025-02-25 17:12

dregad


Details Diff
Merge branch 'master-2.27'
mod - core/bugnote_api.php Diff File

master-2.27 d79bdf5c

2025-02-25 15:32

raspopov

Committer: community


Details Diff
Fix project selection on the edit project page

Code is cleaned up and simplified.
Use the new string_build_query() function.

Fixes 0006264, PR https://github.com/mantisbt/mantisbt/pull/2100

Signed-off-by: raspopov <raspopov@cherubicsoft.com>
Affected Issues
0006264
mod - set_project.php Diff File

master c8faf06f

2025-02-25 06:30

dregad


Details Diff
Merge branch 'master-2.27'
mod - admin/install.php Diff File

master 056426aa

2025-02-24 12:13

raspopov

Committer: dregad


Details Diff
Add a cache to the plugin_find_all() function

Fixes 0035439.

Signed-off-by: raspopov <raspopov@cherubicsoft.com>
Affected Issues
0035439
mod - core/plugin_api.php Diff File

master 1a5ccecc

2025-02-24 11:02

raspopov

Committer: dregad


Details Diff
Update PHPDoc and Admin Guide
mod - config_defaults_inc.php Diff File
mod - docbook/Admin_Guide/en-US/config/html.xml Diff File

master ef2467c4

2025-02-24 10:40

raspopov

Committer: dregad


Details Diff
Fix background color
mod - css/ace-mantis.css Diff File

master 6dabd5bf

2025-02-24 07:07

translatewiki.net


Details Diff
Localisation updates from https://translatewiki.net. [skip ci]
mod - lang/strings_turkish.txt Diff File

master-2.27 d0f89867

2025-02-23 11:24

dregad


Details Diff
Update bug last updated date when deleting bugnote

Fixes 0035432
Affected Issues
0035432
mod - core/bugnote_api.php Diff File
 First  Prev  1 2 3 ... 5 6 7 8 9 10 11 ... 70 ... 140 ... 210 ... 280 ... 350 ... 420 ... 490 ... 560 ... 630 ... 700 ... 730 731 732  Next  Last