We have moved to Github. Please open tickets there.

Opened 4 years ago

Closed 4 years ago

#887 closed Defect (fixed)

SEND mssg loses text if empty() error(s)

Reported by: Dhrup Owned by:
Priority: low Milestone:
Component: Core Version: 1.5
Severity: trivial Keywords: messages
Cc: brettp Difficulty:

Description

send.php validates --

Make sure the message field, send to field and title are not blank

if (empty($message_contents)
empty($send_to) empty($title)) {

...
forward("mod/messages/send.php");

message.php <form;'s input fields are all

input type='text'... value=

so on any *one of the 3 empty errors, when returning to the message form - we lose any text data already input. i guess send.php - instead of the input value= => can check if !empty() and use that value if set.

Change History (3)

comment:1 follow-up: Changed 4 years ago by cash

If I understand what he's getting at, the patch attached to this ticket should fix it: https://trac.elgg.org/elgg/ticket/1070

comment:2 in reply to: ↑ 1 Changed 4 years ago by Dhrup

Replying to cash:

If I understand what he's getting at, the patch attached to this ticket should fix it: https://trac.elgg.org/elgg/ticket/1070

Thanks Cash:
I forgot all about this ticket ;-)
1070 is the same problem -- good that it's been fixed.

comment:3 Changed 4 years ago by cash

  • Resolution set to fixed
  • Status changed from new to closed

This should be fixed now in svn.

Note: See TracTickets for help on using tickets.