Regarding the sorting...when did you last install an update?...I just checked the lastest copy and the fix is present...
my $way = $IN->param('so') || $opts->{'User Sort Order'} || 'ASC';
Hmm this is an "overlook" on my part. It will throw an error if you try to add the same link to the same folder twice. You can fix this in sub my_link_add by changing:
if ($DB->table('MyLinks2')->count({ my_user_username_fk => $USER->{Username}, my_folder_id_fk => $fid, my_link_id_fk => $lid })) {
to...
if ($DB->table('MyLinks2')->count({ my_user_username_fk => $USER->{Username}, my_link_id_fk => $lid })) {
...then it will make sure the link doesn't exist anywhere rather than just in the current folder.
Code:
my $ord = $IN->param('sf') || $opts->{'User Sort Field'} || 'Username'; my $way = $IN->param('so') || $opts->{'User Sort Order'} || 'ASC';
Quote:
I noticed that if I add a link to the default folder and then moce the link to another folder then I can add the same link again to the default folder and move it one more time to the other folder..Hmm this is an "overlook" on my part. It will throw an error if you try to add the same link to the same folder twice. You can fix this in sub my_link_add by changing:
Code:
# Make sure the link doesn't exist in this folder. if ($DB->table('MyLinks2')->count({ my_user_username_fk => $USER->{Username}, my_folder_id_fk => $fid, my_link_id_fk => $lid })) {
to...
Code:
# Make sure the link doesn't exist. if ($DB->table('MyLinks2')->count({ my_user_username_fk => $USER->{Username}, my_link_id_fk => $lid })) {
...then it will make sure the link doesn't exist anywhere rather than just in the current folder.