Skip to content

Commit

Permalink
IMSTUPID: Removing debug, oops.
Browse files Browse the repository at this point in the history
  • Loading branch information
Will Morgan committed Dec 5, 2012
1 parent 52ff3d8 commit 1115e6d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions code/DataObjectManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -776,10 +776,8 @@ public function dosort()
}
if(!isset($relationName)) return false;
list($parentClass, $componentClass, $componentField, $parentField, $table) = singleton($ownerClass)->many_many($relationName);
Debug::dump(singleton($ownerClass)->many_many($relationName));
foreach($map as $sort => $id)
DB::query("UPDATE \"$table\" SET \"SortOrder\" = $sort WHERE \"{$componentField}\" = $id AND \"{$parentField}\" = $controllerID");
Debug::dump("UPDATE \"$table\" SET \"SortOrder\" = $sort WHERE \"{$componentField}\" = $id AND \"{$parentField}\" = $controllerID");
}
else {
foreach($map as $sort => $id) {
Expand Down

0 comments on commit 1115e6d

Please sign in to comment.