]> git.immae.eu Git - perso/Immae/Config/Nix.git/blobdiff - pkgs/webapps/mantisbt_2/bug_report.php.diff
Migrate mantisbt to pkgs
[perso/Immae/Config/Nix.git] / 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 a520043aba769f4aa0c3b2711722e55b4dfbb6ed..29242529592174a44fd9d55ba501ee1a6e307aee 100644 (file)
@@ -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 );