Changesets: MantisBT

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

master-2.27 e2886aea

2025-02-23 11:17

dregad


Details Diff
Install: don't execute SET NAMES UTF8 when printing queries

The installer always executes the query, regardless of $f_log_queries.
When true, the query should be printed, not executed.

Fixes 0035431
Affected Issues
0035431
mod - admin/install.php Diff File

master-2.27 6d9b53dd

2025-02-23 10:24

dregad


Details Diff
Fix filters with date custom fields on PHP 8

In PHP < 8.0, comparing a string to 0 evaluates to true when the string
is empty, but starting with 8.0 it returns false [1].

As a result, when BugFilterQuery::build_prop_custom_fields() checks the
filter (`$t_field[0] == CUSTOM_FIELD_DATE_ANY`, line 1470), it fails on
PHP 8.0+.

To fix this behavior, we ensure that a date custom fields's filter type
is always an int:

- When processing it in filter_gpc_get(), use gpc_get_int() instead of
gpc_get_string() to retrieve the filter's type
- When validating a filter, add special handling for date custom fields
to ensure that the values (control, timestamp 1 & 2) are treated as
integers.

Fixes 0035291

[1]: https://wiki.php.net/rfc/string_to_number_comparison
Affected Issues
0035291
mod - core/filter_api.php Diff File

master-2.27 726961e1

2025-02-23 10:04

dregad


Details Diff
Fix PHP 8.1 deprecation warning in gpc_get_int()

When function is called with null default:
DEPRECATED: 'trim(): Passing null to parameter 1 ($string) of type
string is deprecated' in '.../core/gpc_api.php' line 134

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

master a7e5e498

2025-02-22 17:49

dregad


Details Diff
Inconsistent display in navbar user menu

When using avatar ($g_show_avatar = ON), the username is displayed in a
span with user-info class, but when OFF the span and class were not
present.

With this commit, the span and class are always used.

Fixes 0035425
Affected Issues
0035425
mod - core/layout_api.php Diff File

master-2.27 c55d891a

2025-02-22 03:43

raspopov

Committer: dregad


Details Diff
Increase navbar user name width

The max-width increased from 100px to 270px, this is the maximum size at
which the navbar menu does not collapse on narrow screens.

Fixes 0023593.

Signed-off-by: raspopov <raspopov@cherubicsoft.com>
Affected Issues
0023593
mod - css/ace-mantis.css Diff File

master 5ac7ac60

2025-02-21 18:49

dregad


Details Diff
Merge branch 'master-2.27'

master-2.27 a498179e

2025-02-21 18:49

dregad


Details Diff
Remove HtmlApiTest.php

Messed up the cherry-pick :-/

Partial revert of commit aeaf1e1d360c3dcb1e2a82434178e3c3c488be6d.

Issue 0035322
Affected Issues
0035322
rm - tests/Mantis/HtmlApiTest.php Diff

master 2c34f191

2025-02-21 18:42

dregad


Details Diff
Merge branch 'master-2.27'
mod - core/filter_api.php Diff File
mod - core/filter_form_api.php Diff File
mod - core/html_api.php Diff File
mod - core/layout_api.php Diff File
mod - core/string_api.php Diff File
mod - images/avatar.png Diff File
mod - library/README.md Diff File
mod - library/rssbuilder/class.ObjectIterator.inc.php Diff File
mod - library/rssbuilder/class.ObjectList.inc.php Diff File
mod - library/rssbuilder/class.RSSBase.inc.php Diff File
mod - library/rssbuilder/class.RSSBuilder.inc.php Diff File
mod - library/rssbuilder/class.RSSItem.inc.php Diff File
mod - library/rssbuilder/class.RSSItemList.inc.php Diff File
mod - library/rssbuilder/class.RSS_V_091.inc.php Diff File
mod - library/rssbuilder/class.RSS_V_100.inc.php Diff File
mod - library/rssbuilder/class.RSS_V_200.inc.php Diff File
mod - library/rssbuilder/class.RSS_V_abstract.inc.php Diff File
mod - library/rssbuilder/interface.RSS.inc.php Diff File
mod - library/rssbuilder/rss_sample_script.php Diff File
mod - login_page.php Diff File
mod - login_password_page.php Diff File
mod - lost_pwd_page.php Diff File
mod - manage_proj_create_page.php Diff File
mod - manage_proj_edit_page.php Diff File
mod - manage_proj_page.php Diff File
mod - manage_tags_page.php Diff File
mod - my_view_inc.php Diff File
mod - print_all_bug_page_word.php Diff File
mod - signup.php Diff File
mod - signup_page.php Diff File
mod - verify.php Diff File

master-2.27 aacb4357

2025-02-21 18:06

raspopov

Committer: community


Details Diff
Add appropriate titles to login pages

Improvements for issue 0035180.

PR https://github.com/mantisbt/mantisbt/pull/2095
Affected Issues
0035180
mod - login_page.php Diff File
mod - login_password_page.php Diff File
mod - lost_pwd_page.php Diff File
mod - signup.php Diff File
mod - signup_page.php Diff File
mod - verify.php Diff File

master-2.27 7d097dd7

2025-02-21 17:49

dregad

Committer: community


Details Diff
Fix HTML errors and warnings

Issues reported by Nu Html Checker:

- Error: Stray end tag i in filter_print_view_type_toggle()
- Error: Element option without attribute label must not be empty in
filter_draw_selection_area()
- Error: Row 7 of a row group established by a tbody element has no
cells beginning on it
- Warning: A table row was 0 columns wide, which is less than the column
count established by the first row (8) in filter_form_draw_inputs()
- Warning: The type attribute is unnecessary for JavaScript resources in
html_javascript_link(), - html_javascript_cdn_link() and
html_head_javascript()
- Error: Illegal character in query: [ is not allowed in my_view_inc.php
- Error: End tag for body seen, but there were unclosed elements in
lost_pwd_page.php
- Error: Unclosed element div
- Warning: Consider avoiding viewport values that prevent users from
resizing documents in layout_head_meta()
- Error: An img element must have an alt attribute, except under certain
conditions in layout_login_page_logo()
- Error: Element div not allowed as child of element ul in this context
in layout_breadcrumbs()

Add a new method TableGridLayout::render_spacer() to print a HTML code
for a spacer row of current table.

Add new function string_build_query() to string_api.php, a unified call
of http_build_query().

Moved the extra code from layout_page_begin() and layout_page_end() to
new paired functions layout_main_content_row_begin() and
layout_main_content_row_end().

Fixes 0035180, PR https://github.com/mantisbt/mantisbt/pull/2096
Affected Issues
0035180
mod - core/filter_api.php Diff File
mod - core/filter_form_api.php Diff File
mod - core/html_api.php Diff File
mod - core/layout_api.php Diff File
mod - core/string_api.php Diff File
mod - lost_pwd_page.php Diff File
mod - manage_proj_create_page.php Diff File
mod - manage_proj_edit_page.php Diff File
mod - manage_proj_page.php Diff File
mod - manage_tags_page.php Diff File
mod - my_view_inc.php Diff File

master-2.27 1c0e653e

2025-02-21 17:40

raspopov

Committer: community


Details Diff
Disable javascript inclusion to printed pages

JavaScripts must not be part of the print page, especially not in doc
format.

Fixes 0035314, PR https://github.com/mantisbt/mantisbt/pull/2098
Affected Issues
0035314
mod - print_all_bug_page_word.php Diff File

master-2.27 41dc1b54

2025-02-21 17:35

dregad


Details Diff
Merge branch 'pr2094' into master-2.27

PR https://github.com/mantisbt/mantisbt/pull/2094
mod - library/README.md Diff File
mod - library/rssbuilder/class.ObjectIterator.inc.php Diff File
mod - library/rssbuilder/class.ObjectList.inc.php Diff File
mod - library/rssbuilder/class.RSSBase.inc.php Diff File
mod - library/rssbuilder/class.RSSBuilder.inc.php Diff File
mod - library/rssbuilder/class.RSSItem.inc.php Diff File
mod - library/rssbuilder/class.RSSItemList.inc.php Diff File
mod - library/rssbuilder/class.RSS_V_091.inc.php Diff File
mod - library/rssbuilder/class.RSS_V_100.inc.php Diff File
mod - library/rssbuilder/class.RSS_V_200.inc.php Diff File
mod - library/rssbuilder/class.RSS_V_abstract.inc.php Diff File
mod - library/rssbuilder/interface.RSS.inc.php Diff File
mod - library/rssbuilder/rss_sample_script.php Diff File

master-2.27 efd7f6a0

2025-02-21 17:34

dregad


Details Diff
Convert RSSBuilder scripts from ISO-8859-1 to UTF-8
mod - library/rssbuilder/class.ObjectIterator.inc.php Diff File
mod - library/rssbuilder/class.RSSBase.inc.php Diff File
mod - library/rssbuilder/class.RSSBuilder.inc.php Diff File
mod - library/rssbuilder/class.RSSItem.inc.php Diff File
mod - library/rssbuilder/class.RSSItemList.inc.php Diff File
mod - library/rssbuilder/class.RSS_V_091.inc.php Diff File
mod - library/rssbuilder/class.RSS_V_100.inc.php Diff File
mod - library/rssbuilder/class.RSS_V_200.inc.php Diff File
mod - library/rssbuilder/class.RSS_V_abstract.inc.php Diff File
mod - library/rssbuilder/interface.RSS.inc.php Diff File

master-2.27 eb496f31

2025-02-21 17:18

raspopov

Committer: community


Details Diff
Fix avatar.png to be a real PNG

And smaller.

Fixes 0035403, PR https://github.com/mantisbt/mantisbt/pull/2101
Affected Issues
0035403
mod - images/avatar.png Diff File

master 0a08ab12

2025-02-21 11:26

raspopov

Committer: dregad


Details Diff
Move changes from ACE to custom files

Move the "ace-mantis.css" inclusion to be last, to override ACE.

Signed-off-by: raspopov <raspopov@cherubicsoft.com>
mod - js/common.js Diff File
mod - js/ace.min.js Diff File
mod - js/ace.js Diff File
mod - css/ace.css Diff File
mod - css/ace.min.css Diff File
mod - css/ace-skins.min.css Diff File
mod - css/ace-skins.css Diff File
mod - css/ace-mantis.css Diff File
mod - core/layout_api.php Diff File
 First  Prev  1 2 3 4 5 6 7 8 9 10 ... 70 ... 140 ... 210 ... 280 ... 350 ... 420 ... 490 ... 560 ... 630 ... 700 ... 729 730 731  Next  Last