At 11:32 15.02.2008 +0100, you wrote:
>Hi
>
>We use Mantis together with Subversion. On every commit with the
>Fixed #No pattern the checkin.php is called. But we never got any
>emails when closing by committing, only when manually closing
>by web. I found that the custom checkin function lacks a bit, so
>I propose this change:
>
>custom_function_default_checkin:
>
>Instead of just calling bug_set_field('status'...) it should better
>be bug_close(). This will also set the status and add a bugnote
>but will also send emails and close related bugs (what the
>current implementation does not).
I added this code to my implementation and the mails do come
now. However, there's another small error. The links in the mails,
that point to the bugs, are built with www.example.com instead
of the main address. This comes from the fact that the checkin
script is not called via web server (that knows all these information)
but from a simple script. I now set this information manually
in the script, but it's a hack. At least it should take this value
from the config_inc.php script.
$_SERVER['SERVER_NAME']='my.server.com';
bye Fabi
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
mantisbt-help mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mantisbt-help