Skip to content
Snippets Groups Projects
Commit 51e1e069 authored by jaapjansma's avatar jaapjansma
Browse files

fixed container hook

parents 1af1f399 7bd2359b
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,7 @@ Version 1.3
* Implemented the help text of an action on the edit action screen.
* Changed the implementation of the civicrm_container hook.
* Fix for converting Title into Name
Version 1.2
===========
......
......@@ -86,7 +86,7 @@
$scope.formProcessor.name = newFormProcessorTitle;
$scope.formProcessor.name = $scope.formProcessor.name.toLowerCase();
$scope.formProcessor.name = $scope.formProcessor.name.replace(/[^a-zA-Z\d]/g, '_');
$scope.formProcessor.name = $scope.formProcessor.name.replace(/_+n/g, '_');
$scope.formProcessor.name = $scope.formProcessor.name.replace(/_+/g, '_');
}
}, true);
......
......@@ -35,7 +35,7 @@
$scope.action.name = newTitle;
$scope.action.name = $scope.action.name.toLowerCase();
$scope.action.name = $scope.action.name.replace(/[^a-zA-Z\d]/g, '_');
$scope.action.name = $scope.action.name.replace(/_+n/g, '_');
$scope.action.name = $scope.action.name.replace(/_+/g, '_');
}
}, true);
......
......@@ -30,7 +30,7 @@
$scope.input.name = newTitle;
$scope.input.name = $scope.input.name.toLowerCase();
$scope.input.name = $scope.input.name.replace(/[^a-zA-Z\d]/g, '_');
$scope.input.name = $scope.input.name.replace(/_+n/g, '_');
$scope.input.name = $scope.input.name.replace(/_+/g, '_');
}
}, true);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment