[horde] Problem reporting -- enhancement request.

Anant Athavale asa at isac.gov.in
Fri Jun 23 23:57:19 PDT 2006


Dear List:

Two things I have modified w.r.t. Problem reporting.

1. Name and E-mail address is now not editable.
2. Contact Number is compulsory.

1st was done to make sure that, the user should not enter somebody  
else's e-mail id, and generate a problem report.

2nd was done to make sure that, if the user is not in a position to  
receive any mail, he can be contacted over the mentioned contact no by  
the mail system admin. This has been very helpful to me.  Since,  
sometimes, the user uses, Forward feature of Ingo and forgets.  He  
complains, he is not receiving mails.  Even, if I reply him, again it  
get forwarded to his autoforwarded ID.  So, best way to contact is by  
making a call.

I am attaching the diff of problem.php and problem.inc, if it is  
generally accepted, it can be included in CVS.  This is w.r.t. current  
stable release.

Regards,

Anant.
-------------- next part --------------
14,17d13
<     } else if (document.problem_report.contact.value == '') {
<          alert('<?php echo _("You must mention your Contact Number before you can send the problem report."); ?>');
<          document.problem_report.contact.focus();
<          return false;
38,39c34
<     <td><?php echo $name ?></td>
<     <td><input type="hidden" tabindex="1" name="name" value="<?php echo $name ?>" size="70" /></td>
---
>     <td><input type="text" tabindex="1" name="name" value="<?php echo $name ?>" size="70" /></td>
44,45c39
<     <td><?php echo $email ?></td>
<     <td><input type="hidden" tabindex="2" name="email" value="<?php echo $email ?>" size="70" /></td>
---
>     <td><input type="text" tabindex="2" name="email" value="<?php echo $email ?>" size="70" /></td>
54,58d47
<     <td class="light" align="right"><?php echo _("Your Contact Number") ?></td>
<     <td><input type="text" tabindex="4" name="contact" value="<?php echo $contact ?>" size="10" /></td>
< </tr>
< 
< <tr>
-------------- next part --------------
38d37
< $contact = Util::getFormData('contact', '');
51,52c50
<             str_replace("\r\n", "\n", $message) .
<             "\n\nUser Contact Number is : $contact\n\n" ;
---
>             str_replace("\r\n", "\n", $message);


More information about the horde mailing list