Webmastersite.net
Register Log In

Alert after delete attach files

Comments on Alert after delete attach files

befeleme
Experienced

Usergroup: Customer
Joined: Aug 27, 2005
Location: Czech Republic

Total Topics: 48
Total Comments: 82
Posted Dec 31, 2005 - 5:01 AM:

Hallo Paul,

I suggest new link with one required field "title". I fill this required field and after attach new file. All is ok. - name of file displays as Current Attachments. After I delete this file (use check box) and click Delete selected. File is deleted, but on the top of page alert text " You did not complete all of the required fields" displays. In required field (title) stay text written before.

I use multilingual original version WSN.



Befeleme
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Jan 01, 2006 - 12:43 PM:

I can't reproduce that. When I delete the file it reloads the page, but there's no alert text at the top.
befeleme
Experienced

Usergroup: Customer
Joined: Aug 27, 2005
Location: Czech Republic

Total Topics: 48
Total Comments: 82
Posted Jan 02, 2006 - 3:16 AM:

Hallo Paul,

once more Step by step (sorry for my english)

1. Admin panel/settings/general/required fileds - select only title

2. go to page suggestlink - I fill in only title of link with name: mytitle

3. Browse and attach new file (image)

4. Displays Current Attachments : One image with check box

5. I check this checkbox

6. Click to Delete selected

7. Reload to suggestlink page and on the top is alert text " You did not complete all of the required fields", but required field is still "mytitle". Attach Image is correctly deleted.

Thanks for your patience.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Jan 04, 2006 - 3:10 AM:

I see. Fixed by changing
   $temp = new attachment('id', $attachdelete[$x]);	
$temp->deletethis(1);
}
to
   $temp = new attachment('id', $attachdelete[$x]);	
$temp->deletethis(1);
}
if (!$incomplete) $incompletemessage = ' ';
in suggest.php (will be applied in future releases of course)
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.