Skip to content

Commit

Permalink
fix channel reordering. closes #127
Browse files Browse the repository at this point in the history
  • Loading branch information
tobyzerner committed Oct 9, 2013
1 parent 4514530 commit f86b3f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/models/ETChannelModel.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -272,14 +272,14 @@ public function update($values, $wheres = array())
if (isset($values["title"]))
$this->validate("title", $values["title"], array($this, "validateTitle"));

if (isset($values["slug"]))
if (isset($values["slug"])) {
$this->validate("slug", $values["slug"], array($this, "validateSlug"));
$values["slug"] = slug($values["slug"]);
}

// Collapse the attributes.
if (isset($values["attributes"])) $values["attributes"] = serialize($values["attributes"]);

$values["slug"] = slug($values["slug"]);

if ($this->errorCount()) return false;

// Reset channels in the global cache.
Expand Down

0 comments on commit f86b3f7

Please sign in to comment.