diff --git a/src/skin/js/group/GroupEditor.js b/src/skin/js/group/GroupEditor.js index f9700f9a3..5411c12d2 100644 --- a/src/skin/js/group/GroupEditor.js +++ b/src/skin/js/group/GroupEditor.js @@ -1,5 +1,5 @@ $(function() { - $(".groupSpecificProperties").on('click',(function (e) { + $(".groupSpecificProperties").on('click',function (e) { var groupPropertyAction = e.currentTarget.id; if (groupPropertyAction == "enableGroupProps") { $("#groupSpecificPropertiesModal").modal("show"); diff --git a/src/v2/templates/group/groupPropsEditor.php b/src/v2/templates/group/groupPropsEditor.php index 6004bee88..825d897de 100644 --- a/src/v2/templates/group/groupPropsEditor.php +++ b/src/v2/templates/group/groupPropsEditor.php @@ -134,7 +134,11 @@ $sSQL = "UPDATE groupprop_".$iGroupID." SET `".$aPropFields[$iPropID]."` = null WHERE `per_ID` = '".$iPersonID."';"; - } + } else { + $sSQL = "UPDATE groupprop_".$iGroupID." + SET `".$aPropFields[$iPropID]."` = '".$aDescFields[$iPropID]."' + WHERE `per_ID` = '".$iPersonID."';"; + } } else { if ($aTypeFields[$iPropID] == 2) { $aDescFields[$iPropID] = InputUtils::FilterDate($aDescFields[$iPropID]); @@ -268,31 +272,24 @@ - - - - - - - - - - -
- - - -
- - - + } ?> + diff --git a/src/v2/templates/group/groupPropsFormEditor.php b/src/v2/templates/group/groupPropsFormEditor.php index 0eb8bab20..430a59185 100644 --- a/src/v2/templates/group/groupPropsFormEditor.php +++ b/src/v2/templates/group/groupPropsFormEditor.php @@ -401,30 +401,23 @@ - - - - - - - - - - -
- - - -
- - - + } ?> +