summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/models/item.php4
1 files changed, 0 insertions, 4 deletions
diff --git a/core/models/item.php b/core/models/item.php
index afed45f8..b32f6e2c 100644
--- a/core/models/item.php
+++ b/core/models/item.php
@@ -291,10 +291,6 @@ class Item_Model extends ORM_MPTT {
$this->created = $this->updated;
$r = ORM::factory("item")->select("MAX(weight) as max_weight")->find();
$this->weight = $r->max_weight + 1;
- // Let albums have a weight of based on the largest -ve number so they come first.
- if ($this->is_album()) {
- $this->weight = -(0x7FFFFFFF - $this->weight);
- }
}
}
return parent::save();