1
0
Fork 0
mirror of https://github.com/correl/mage.git synced 2025-04-11 09:11:12 -09:00

Fixed bug with the email value not sent to server ;((

This commit is contained in:
magenoxx 2012-01-30 20:34:14 +04:00
parent b52a0f1c2c
commit ca0fcbad58

View file

@ -249,7 +249,10 @@ public class FeedbackDialog extends javax.swing.JDialog {
if (message.length() > 300) {
JOptionPane.showMessageDialog(null, "\"Describe your idea\" value is too long (300 characters max)", "Warning", JOptionPane.INFORMATION_MESSAGE);
}
String email = cleanUpType(cbFeedbackType.getSelectedItem().toString());
String email = txtEmail.getText().trim();
if (email.length() > 100) {
email = email.substring(0, 100);
}
if (MageFrame.getSession().sendFeedback(title, type, message, email)) {
JOptionPane.showMessageDialog(null, "Feedback was sent. Thank you!", "Success", JOptionPane.INFORMATION_MESSAGE);
reset();