diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-12-27 15:54:36 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-12-27 15:54:36 +0000 |
commit | b75f24356951b8b9d31029232be223e03dd3e8e6 (patch) | |
tree | 5790cbc9cbb7404890428500117ca94c3396dd16 /admin | |
parent | fc45fa0230e54512edab6e0d7047a1708890d198 (diff) | |
download | ampache-b75f24356951b8b9d31029232be223e03dd3e8e6.tar.gz ampache-b75f24356951b8b9d31029232be223e03dd3e8e6.tar.bz2 ampache-b75f24356951b8b9d31029232be223e03dd3e8e6.zip |
added ability to mass tag songs using the play selected code
Diffstat (limited to 'admin')
-rw-r--r-- | admin/flag.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/admin/flag.php b/admin/flag.php index bc97fde9..ac621e65 100644 --- a/admin/flag.php +++ b/admin/flag.php @@ -183,7 +183,7 @@ switch ($action) { break; /* Done by 'Select' code passes array of song ids */ case 'mass_update': - $songs = $_REQUEST['songs']; + $songs = $_REQUEST['song']; $catalog = new Catalog(); $object = $_REQUEST['update_field']; $flag = new Flag(); @@ -208,13 +208,16 @@ switch ($action) { case 'aritst': $new_song->artist = $catalog->check_artist(revert_string($_REQUEST['update_value'])); break; + case 'year': + $new_song->year = intval($_REQUEST['update_value']); + break; default: // Rien a faire break; } // end switch /* Update this mofo, store an old copy for cleaning */ - $song->update_song($song_id,$new_song); + $new_song->update_song($song_id,$new_song); /* Now that it's been updated clean old junk entries */ $cleaned = $catalog->clean_single_song($old_song); @@ -223,6 +226,8 @@ switch ($action) { } // end foreach songs + // Show a confirmation that this worked + show_confirmation(_('Songs Updated'),'',return_referer()); break; case 'reject_flag': $flag_id = scrub_in($_REQUEST['flag_id']); |