Broadcast 'formSubmitting' event when Macro Parameter Overlay is submitted

Some property editors - eg MultiUrlPicker listen out for the broadcast of the 'formSubmitting' event before setting their value of $scope.model.value... if these editors are used as Macro Parameters they do not save their value. This commit adds the broadcasting of the event when the 'submit' button is called and any parameters have been set.
This commit is contained in:
Marc Goodson
2020-05-20 16:39:55 +01:00
committed by Sebastiaan Janssen
parent 751a54f525
commit 57d08c964a
@@ -22,6 +22,7 @@ function MacroPickerController($scope, entityResource, macroResource, umbPropEdi
if ($scope.wizardStep === "macroSelect") {
editParams(true);
} else {
$scope.$broadcast("formSubmitting", { scope: $scope });
$scope.model.submit($scope.model);
}
};