Pager Gone when I edit query in "views_pre_execute"
I found the solution of the problem.

Indeed I manipulate the code in wrong function.

I switched to hook_views_query_alter and modify my codes in that function.

now everything works fine with no problem.

my function is

function modify_view_query_views_query_alter(&amp;$view, &amp;$query){ }


and I modify the query parts by changing the array values.

$query-&gt;where[0]["clauses"] and $query-&gt;where[0]["args"]