Opened 13 years ago
Closed 9 years ago
#20706 closed enhancement (wontfix)
Adding a link without a name or web address yields no (error) feedback
Reported by: | AVReidy | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | General | Keywords: | has-patch dev-feedback |
Focuses: | Cc: |
Description
If a user successfully creates a link (on link-add.php), the user receives the message "Link added." However, there are no measures taken to notify the user if the link was not successfully added.
Links are not added when the link name and web address fields are left blank, so I have included a little patch to let the user know when this occurs.
This could be done with some JavaScript form validation that makes an alert box pop up, but half the (PHP/HTML) code was already present for this, and I think it looks better this way, personally. This is my first attempt at submitting a patch to any open source project, so I appreciate your feedback. Thanks!
Attachments (3)
Change History (7)
Note: See
TracTickets for help on using
tickets.
edit-link-form.php.patch
needs to retain i18n support with_e()
or__()
Also both patches should be generated with paths given relative to root.