From aba473608b877a36e25292c4f3933145349cc252 Mon Sep 17 00:00:00 2001 From: Andrew O'Neil Date: Mon, 26 Jan 2009 21:51:00 +0000 Subject: [PATCH] BUGFIX: Fix incorrect URL when adding a new Member via the MemberTableField git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@70750 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- javascript/MemberTableField.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/javascript/MemberTableField.js b/javascript/MemberTableField.js index f54a6cab..3a9196fa 100755 --- a/javascript/MemberTableField.js +++ b/javascript/MemberTableField.js @@ -131,8 +131,8 @@ MemberTableField.prototype = { updateURL = ""; updateURL += Event.findElement(e,"form").action; // we can't set "fieldName" as a HiddenField because there might be multiple ComplexTableFields in a single EditForm-container - updateURL += "&fieldName="+$('MemberFieldName').value; - updateURL += "&action_callfieldmethod&&methodName=addtogroup&"; + updateURL += "?fieldName="+$('MemberFieldName').value; + updateURL += "&action_callfieldmethod&methodName=addtogroup"; ajaxSubmitFieldSet(updateURL, data); } @@ -276,4 +276,4 @@ MemberFilterButton.prototype = { // has to be external from initialize() because otherwise request will double on each reload - WTF Behaviour.register({ '#Form_EditForm div.MemberTableField table.data input' : AjaxMemberLookup -}); \ No newline at end of file +});