mirror of
https://github.com/magefree/mage.git
synced 2025-12-28 14:32:06 -08:00
Fixed bug with the email value not sent to server ;((
This commit is contained in:
parent
b52a0f1c2c
commit
ca0fcbad58
1 changed files with 4 additions and 1 deletions
|
|
@ -249,7 +249,10 @@ public class FeedbackDialog extends javax.swing.JDialog {
|
||||||
if (message.length() > 300) {
|
if (message.length() > 300) {
|
||||||
JOptionPane.showMessageDialog(null, "\"Describe your idea\" value is too long (300 characters max)", "Warning", JOptionPane.INFORMATION_MESSAGE);
|
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)) {
|
if (MageFrame.getSession().sendFeedback(title, type, message, email)) {
|
||||||
JOptionPane.showMessageDialog(null, "Feedback was sent. Thank you!", "Success", JOptionPane.INFORMATION_MESSAGE);
|
JOptionPane.showMessageDialog(null, "Feedback was sent. Thank you!", "Success", JOptionPane.INFORMATION_MESSAGE);
|
||||||
reset();
|
reset();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue