mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
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
This commit is contained in:
parent
efbdaf7b2e
commit
aba473608b
@ -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
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user