Skip to content

Commit

Permalink
pageId fix in manage items in admin for new language
Browse files Browse the repository at this point in the history
  • Loading branch information
Neil Jennings committed Jun 26, 2019
1 parent 7bace39 commit ac0bea9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions resources/views/admin/partials/groups/page_row.blade.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<tr id='list_{!! $page_lang->page_id !!}' data-name='{!! $page_lang->name !!}'>
<tr id='list_{!! $pageId !!}' data-name='{!! $page_lang->name !!}'>
<td>
{!! $page_lang->name !!}
</td>
Expand All @@ -9,7 +9,7 @@
@endforeach
<td>
@if ($can_edit)
<a href="{{ route('coaster.admin.pages.edit', ['pageId' => $page_lang->page_id]) }}" class="glyphicon glyphicon-pencil itemTooltip" title="{{ 'Edit '.$item_name }}"></a>
<a href="{{ route('coaster.admin.pages.edit', ['pageId' => $pageId]) }}" class="glyphicon glyphicon-pencil itemTooltip" title="{{ 'Edit '.$item_name }}"></a>
@endif
@if ($can_delete)
<i class="delete glyphicon glyphicon-trash itemTooltip" data-name="{!! $page_lang->name !!}"
Expand Down
2 changes: 1 addition & 1 deletion src/Http/Controllers/AdminControllers/GroupsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function getPages($groupId)
}
}

$pageRows .= View::make('coaster::partials.groups.page_row', array('page_lang' => $pageLang, 'item_name' => $group->item_name, 'showBlocks' => $showBlocks, 'can_edit' => $canEdit, 'can_delete' => $canDelete))->render();
$pageRows .= View::make('coaster::partials.groups.page_row', array('pageId' => $pageId, 'page_lang' => $pageLang, 'item_name' => $group->item_name, 'showBlocks' => $showBlocks, 'can_edit' => $canEdit, 'can_delete' => $canDelete))->render();
}
}

Expand Down

0 comments on commit ac0bea9

Please sign in to comment.