Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue of #63 #79

Merged
merged 1 commit into from Oct 26, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions data/Smarty/templates/admin/contents/index.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@
<td><a href="#" onclick="eccube.fnFormModeSubmit('move','delete','news_id','<!--{$arrNews[data].news_id|h}-->'); return false;">削除</a></td>
<td>
<!--{if count($arrNews) != 1}-->
<!--{assign var=news_id value="`$arrNews[data].news_id`"}-->
<!--{if $arrErr[$news_id] != ""}--><span class="attention"><!--{$arrErr[$news_id]}--></span><!--{/if}-->
<input type="text" name="pos-<!--{$arrNews[data].news_id|h}-->" size="3" class="box3" />番目へ<a href="?" onclick="eccube.fnFormModeSubmit('move', 'moveRankSet','news_id', '<!--{$arrNews[data].news_id|h}-->'); return false;">移動</a><br />
<!--{/if}-->
<!--{if $smarty.section.data.iteration != 1}-->
Expand Down
7 changes: 6 additions & 1 deletion data/class/pages/admin/contents/LC_Page_Admin_Contents.php
Original file line number Diff line number Diff line change
Expand Up @@ -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] = "※ 移動先は数字で入力してください。<br>";
$this->arrNews = $objNews->getList();
$this->line_max = count($this->arrNews);
return;
}
SC_Response_Ex::reload();
break;

default:
Expand Down