Description:
When trying to associate another issue got an error.
The httpd server logs shows access to invalid URL
GET /validate.php?action=validateIssueNumbers&values
/eventum prefix was lost
How to repeat:
in config/config.php
define('APP_RELATIVE_URL', '/eventum/');
- view some issue
- update it
- try to assocciate another issue
- firefox (2.0.9) shows an error dialog
Suggested fix:
--- js/validation.js.071123 2007-11-04 17:30:05.000000000 +0200
+++ js/validation.js 2007-11-23 14:08:14.000000000 +0200
@@ -12,7 +12,7 @@
last_issue_number_validation_value = form_value;
}
validate_issue_http_client = new HTTPClient();
- validate_issue_http_client.loadRemoteContent(baseURL + '/validate.php?action=validateIssueNumbers&values=' +
+ validate_issue_http_client.loadRemoteContent(baseURL + 'validate.php?action=validateIssueNumbers&values=' +
form_value + '&field_name=' + field_name + '&form_name=' + form_name + '&check_project=0', 'displayIssueFieldValidation');
}
--- templates/update_form.tpl.html.071123 2007-11-10 02:52:16.000000000 +0200
+++ templates/update_form.tpl.html 2007-11-23 14:09:04.000000000 +0200
@@ -229,7 +229,7 @@
<nobr><b>{t}Associated Issues:{/t}</b></nobr>
</td>
<td bgcolor="{$light_color}">
- <input type="text" name="associated_issues" value="{", "|join:$issue.associated_issues}" class="default" onBlur="validateIssueNumberField('{$base_url}', 'update_form', 'associated_issues')">
+ <input type="text" name="associated_issues" value="{", "|join:$issue.associated_issues}" class="default" onBlur="validateIssueNumberField('{$app_base_url}', 'update_form', 'associated_issues')">
{include file="error_icon.tpl.html" field="associated_issues"}
<span id="associated_issues_error" class="default"></span>
</td>