Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: mantisbt/mantisbt
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 5d80a1f5401e
Choose a base ref
...
head repository: mantisbt/mantisbt
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: f46b71f65df7
Choose a head ref
  • 2 commits
  • 2 files changed
  • 1 contributor

Commits on Nov 5, 2012

  1. Fix #11928: duplicated categories in Summary Page

    Thanks to redimite for providing the patch.
    dregad committed Nov 5, 2012
    Copy the full SHA
    e84e4ed View commit details
  2. Documentation: note on upgrading large databases

    Added a comment on how to handle the failure to process the date
    conversion in a single setup for large databases, as documented in
    issues #12601, #12735 and #14830
    dregad committed Nov 5, 2012

    Verified

    This commit was signed with the committer’s verified signature.
    haoqunjiang Haoqun Jiang
    Copy the full SHA
    f46b71f View commit details
Showing with 19 additions and 3 deletions.
  1. +3 −3 core/summary_api.php
  2. +16 −0 docbook/Admin_Guide/en-US/Installation.xml
6 changes: 3 additions & 3 deletions core/summary_api.php
Original file line number Diff line number Diff line change
@@ -640,8 +640,8 @@ function summary_print_by_category() {
FROM $t_mantis_bug_table b
JOIN $t_mantis_category_table c ON b.category_id=c.id
WHERE b.$specific_where
GROUP BY $t_project_query category_id, c.name, b.status
ORDER BY $t_project_query category_id, c.name, b.status";
GROUP BY $t_project_query c.name, b.status
ORDER BY $t_project_query c.name";

$result = db_query( $query );

@@ -660,7 +660,7 @@ function summary_print_by_category() {
$v_category_id = $row['category_id'];
$v_category_name = $row['category_name'];

if(( $v_category_id != $last_category_id ) && ( $last_category_id != -1 ) ) {
if(( $v_category_name != $last_category_name ) && ( $last_category_name != -1 ) ) {
$label = $last_category_name;
if(( ON == $t_summary_category_include_project ) && ( ALL_PROJECTS == $t_project_id ) ) {
$label = sprintf( '[%s] %s', project_get_name( $last_project ), $label );
16 changes: 16 additions & 0 deletions docbook/Admin_Guide/en-US/Installation.xml
Original file line number Diff line number Diff line change
@@ -565,6 +565,22 @@ tar -xf <emphasis>filename.tar</emphasis>

</orderedlist>

<note>
<title>Upgrading large databases</title>

<para>When processing large databases from versions older than 1.2,
the upgrade script may fail during the conversion of date fields,
leaving the system in an inconsistent (i.e. partially updated)
state.
</para>
<para>In this case, you should simply restart the upgrade process,
which will resume where it left off. Note that you may have to
repeat this several times, until normal completion.
</para>
<para>Reference: MantisBT issue
<ulink url="http://www.mantisbt.org/bugs/view.php?id=12735">12735</ulink>.
</para>
</note>
</section>