From eed57674f99621e5354a13543067e9556eb9c6d0 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sat, 24 Jan 2009 05:14:44 +0000 Subject: Add move support. Use the move icon in the quick pane. You can't move an item into its own hierarchy, or into an album where you don't have edit permission. --- core/models/item.php | 1 + 1 file changed, 1 insertion(+) (limited to 'core/models') diff --git a/core/models/item.php b/core/models/item.php index 5654b36f..ed82da52 100644 --- a/core/models/item.php +++ b/core/models/item.php @@ -110,6 +110,7 @@ class Item_Model extends ORM_MPTT { $original_thumb_path = $this->thumb_path(); parent::move_to($target, true); + $this->relative_path = null; rename($original_path, $this->file_path()); if ($this->is_album()) { -- cgit v1.2.3