Skip to content

Commit

Permalink
amend api query string parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
fukawi2 committed Oct 18, 2018
1 parent 93c8be1 commit 61a0cc8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/API.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function GetShow($f3,$params) {
AND episodes.season_number = (SELECT MAX(season_number) FROM episodes WHERE episodes.show_id = shows.show_id)';

// load the database record(s), with or without a filter
$show_id = $f3->get('GET.show_id');
$show_id = $f3->get('GET.id');
if ($show_id)
$db_show->load(array('active IS TRUE AND show_id=?', $show_id));
else
Expand Down
2 changes: 1 addition & 1 deletion views/episode/publish.htm
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@

// fetch show data via api and set to the appropriate form fields
$.ajax({
url: "{{ 'api_show' | alias }}?show_id="+$("#show_id").val(),
url: "{{ 'api_show' | alias }}?id="+$("#show_id").val(),
dataType: "json",
type: "GET",
async: true,
Expand Down

0 comments on commit 61a0cc8

Please sign in to comment.