convert legacy icons in permissions section

This commit is contained in:
Mads Rasmussen
2015-06-18 12:53:26 +02:00
parent 318f9ff8d5
commit a4dde5f6db

View File

@@ -6,7 +6,7 @@
* @description
* The controller for the content type editor property dialog
*/
function PermissionsController($scope, contentTypeResource, $log) {
function PermissionsController($scope, contentTypeResource, $log, iconHelper) {
/* ----------- SCOPE VARIABLES ----------- */
@@ -24,6 +24,9 @@ function PermissionsController($scope, contentTypeResource, $log) {
angular.forEach($scope.contentTypes, function(contentType){
// convert legacy icons
iconHelper.formatContentTypeIcons($scope.contentTypes);
var exists = false;
angular.forEach($scope.contentType.allowedContentTypes, function(allowedContentType){