Skip to content

Commit

Permalink
Blogs: fix URL cidReq added BT#18197
Browse files Browse the repository at this point in the history
  • Loading branch information
jmontoyaa committed Dec 17, 2020
1 parent 1ff4b21 commit 36f1aac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion main/blog/blog.php
Expand Up @@ -424,7 +424,8 @@
}

$content = $tpl->fetch($blogLayout);

$tpl->assign('course_code', api_get_course_id());
$tpl->assign('session_id', api_get_session_id());
if ($actionsLeft) {
$tpl->assign(
'actions',
Expand Down
4 changes: 3 additions & 1 deletion main/template/default/blog/blog.tpl
Expand Up @@ -14,8 +14,10 @@
{{ 'Search'|get_lang }}
</div>
<div class="panel-body">
<form action="blog.php" method="get" enctype="multipart/form-data">
<form action="blog.php?{{ _p.web_cid_query }}" method="get" enctype="multipart/form-data">
<div class="form-group">
<input type="hidden" name="cidReq" value="{{ course_code }}"/>
<input type="hidden" name="id_session" value="{{ session_id }}"/>
<input type="hidden" name="blog_id" value="{{ id_blog }}"/>
<input type="hidden" name="action" value="view_search_result"/>
<input type="text" class="form-control" size="20" name="q" value="{{ search }}"/>
Expand Down

0 comments on commit 36f1aac

Please sign in to comment.