X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=pkgs%2Fwebapps%2Fmantisbt_2%2Fbug_report.php.diff;fp=nixops%2Fmodules%2Fwebsites%2Ftools%2Fgit%2Fmantisbt%2Fpatches%2Fbug_report.php.diff;h=29242529592174a44fd9d55ba501ee1a6e307aee;hb=43dac87fef530d52961cb7df5fdb01aa651d802c;hp=a520043aba769f4aa0c3b2711722e55b4dfbb6ed;hpb=7f9bc878c96b4e40b72c907cded326fc6bdee38a;p=perso%2FImmae%2FConfig%2FNix.git diff --git a/nixops/modules/websites/tools/git/mantisbt/patches/bug_report.php.diff b/pkgs/webapps/mantisbt_2/bug_report.php.diff similarity index 50% rename from nixops/modules/websites/tools/git/mantisbt/patches/bug_report.php.diff rename to pkgs/webapps/mantisbt_2/bug_report.php.diff index a520043..2924252 100644 --- a/nixops/modules/websites/tools/git/mantisbt/patches/bug_report.php.diff +++ b/pkgs/webapps/mantisbt_2/bug_report.php.diff @@ -1,8 +1,8 @@ ---- a/bug_report.php 2018-02-10 21:29:27.000000000 +0100 -+++ b/bug_report.php 2018-03-03 15:04:19.622499678 +0100 -@@ -149,6 +149,17 @@ - access_ensure_project_level( config_get( 'update_bug_assign_threshold' ) ); - } +--- a/bug_report.php 2019-05-06 12:06:44.265508011 +0200 ++++ b/bug_report.php 2019-05-06 12:09:40.106952738 +0200 +@@ -67,6 +67,17 @@ + 'copy_files' => $f_copy_attachments_from_parent + ); +# begin captcha check for anon user +if ( current_user_is_anonymous() && get_gd_version() > 0 ) { @@ -15,6 +15,6 @@ + } +} + - # if a profile was selected then let's use that information - if( 0 != $t_bug_data->profile_id ) { - if( profile_is_global( $t_bug_data->profile_id ) ) { + if( $f_master_bug_id > 0 ) { + bug_ensure_exists( $f_master_bug_id ); +