Commit 4a403ec3 authored by jaapjansma's avatar jaapjansma
Browse files

fixed issue with conditions not always working

parent 6d07ec56
......@@ -4,6 +4,9 @@
$scope.ts = CRM.ts(null);
$scope.action = $scope.model.action;
$scope.conditionTypes = CRM.form_processor.conditionTypes;
if (typeof $scope.action.condition_configuration !== 'object' || $scope.action.condition_configuration === null) {
$scope.action.condition_configuration = {};
}
$scope.saveClick = function() {
$scope.model.action = $scope.action;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment