diff --git a/data/Smarty/templates/admin/contents/index.tpl b/data/Smarty/templates/admin/contents/index.tpl index d53c41b5cc..ccf543aafb 100644 --- a/data/Smarty/templates/admin/contents/index.tpl +++ b/data/Smarty/templates/admin/contents/index.tpl @@ -136,6 +136,8 @@ 削除 + + 番目へ移動
diff --git a/data/class/pages/admin/contents/LC_Page_Admin_Contents.php b/data/class/pages/admin/contents/LC_Page_Admin_Contents.php index fef419d505..6bf4fdaff8 100644 --- a/data/class/pages/admin/contents/LC_Page_Admin_Contents.php +++ b/data/class/pages/admin/contents/LC_Page_Admin_Contents.php @@ -145,8 +145,13 @@ public function action() $input_pos = $this->getPostRank($news_id); if (SC_Utils_Ex::sfIsInt($input_pos)) { $objNews->moveRank($news_id, $input_pos); + SC_Response_Ex::reload(); + } else { + $this->arrErr[$news_id] = "※ 移動先は数字で入力してください。
"; + $this->arrNews = $objNews->getList(); + $this->line_max = count($this->arrNews); + return; } - SC_Response_Ex::reload(); break; default: