From d89dc8b0ebf76c207148fa889a09d6307e072b73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Lourseau?= Date: Sat, 19 Mar 2016 13:41:09 +0100 Subject: [PATCH] Added missing EditView.getUrl parameter --- src/javascripts/ng-admin/Crud/routing.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/javascripts/ng-admin/Crud/routing.js b/src/javascripts/ng-admin/Crud/routing.js index 0eed7c48..81120611 100644 --- a/src/javascripts/ng-admin/Crud/routing.js +++ b/src/javascripts/ng-admin/Crud/routing.js @@ -309,7 +309,7 @@ function routing($stateProvider) { dataStore: () => new DataStore(), view: viewProvider('EditView'), rawEntry: ['$stateParams', 'ReadQueries', 'view', function ($stateParams, ReadQueries, view) { - return ReadQueries.getOne(view.getEntity(), view.type, $stateParams.id, view.identifier(), view.getUrl()); + return ReadQueries.getOne(view.getEntity(), view.type, $stateParams.id, view.identifier(), view.getUrl($stateParams.id)); }], entry: ['view', 'rawEntry', function(view, rawEntry) { return view.mapEntry(rawEntry);