Steps to reproduce:
- Login as a user or admin
- Navigate to a page and add an attachment to it (in my case "TestPage3" and "vader.jpg")
- Edit the page in WYSIWYG mode
- Click on Link->Attached File...
- Click on the "All pages" tab
- Navigate to your page, click on "Attachments" and then click on your attachment
- Click on "Select"
There will be an error message saying "No attachment was selected". I have to mention this bug doesn't exist on the "Current page" tab.
Tested on Firefox 16.0.2, IE 8, IE 9 and Chrome 23.