diff --git a/javascript/FieldEditor.js b/javascript/FieldEditor.js index 6bab7a533..a21c09121 100755 --- a/javascript/FieldEditor.js +++ b/javascript/FieldEditor.js @@ -509,7 +509,7 @@ Behaviour.register( if( Element.hasClassName( $('Fields'), 'readonly' ) ) return false; - action = this.urlForFieldMethod("addfield") + "&Type=" + this.id; + action = this.urlForFieldMethod("addfield") + "&Type=" + this.id + ($('SecurityID') ? '&SecurityID=' + $('SecurityID').value : '');; statusMessage('Adding new field' ); @@ -551,4 +551,4 @@ function reportError(request){ // More complex error for developers statusMessage(request.responseText,'bad'); -} \ No newline at end of file +}