Update column names:
left --> left_ptr right --> right_ptr
This commit is contained in:
parent
96b96b1c6c
commit
597447673d
@ -85,15 +85,15 @@ class rescue_task_Core {
|
|||||||
->select("id")
|
->select("id")
|
||||||
->from("items")
|
->from("items")
|
||||||
->where("parent_id", $parent_id)
|
->where("parent_id", $parent_id)
|
||||||
->orderby("left", "ASC")
|
->orderby("left_ptr", "ASC")
|
||||||
->get();
|
->get();
|
||||||
}
|
}
|
||||||
|
|
||||||
static function set_left($id, $value) {
|
static function set_left($id, $value) {
|
||||||
Database::instance()->update("items", array("left" => $value), array("id" => $id));
|
Database::instance()->update("items", array("left_ptr" => $value), array("id" => $id));
|
||||||
}
|
}
|
||||||
|
|
||||||
static function set_right($id, $value) {
|
static function set_right($id, $value) {
|
||||||
Database::instance()->update("items", array("right" => $value), array("id" => $id));
|
Database::instance()->update("items", array("right_ptr" => $value), array("id" => $id));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user