diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-01-24 05:14:44 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-01-24 05:14:44 +0000 |
commit | eed57674f99621e5354a13543067e9556eb9c6d0 (patch) | |
tree | 563795ae826ea1e1175bef94ceab722807718c6a /core/models | |
parent | 20cd5df3a374f035bddf71ddf2b75c533f05bfac (diff) |
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.
Diffstat (limited to 'core/models')
-rw-r--r-- | core/models/item.php | 1 |
1 files changed, 1 insertions, 0 deletions
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()) { |