From a95ff4cc68907a1d3417f25e84f15da878decf71 Mon Sep 17 00:00:00 2001 From: migarashi Date: Fri, 1 Jan 2016 16:38:43 +0900 Subject: [PATCH] Fix issue of #63 --- data/Smarty/templates/admin/contents/index.tpl | 2 ++ data/class/pages/admin/contents/LC_Page_Admin_Contents.php | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) 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: