Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fusiondirectory
fusiondirectory
Commits
cbf3185c
Commit
cbf3185c
authored
Feb 13, 2015
by
Côme Bernigaud
Committed by
Benoit Mortier
Feb 13, 2015
Browse files
Fixes #3554 Fixed user->group gidNumber foreign key
parent
49795f05
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/admin/groups/class_group.inc
View file @
cbf3185c
...
@@ -1142,6 +1142,27 @@ class group extends plugin
...
@@ -1142,6 +1142,27 @@ class group extends plugin
}
}
}
}
protected
function
attributeInitialValue
(
$field
)
{
if
(
$field
==
'gidNumber'
)
{
return
$this
->
saved_gidNumber
;
}
else
{
return
parent
::
attributeInitialValue
(
$field
);
}
}
protected
function
attributeHaveChanged
(
$field
)
{
if
(
$field
==
'gidNumber'
)
{
if
(
!
$this
->
initially_was_account
)
{
return
TRUE
;
}
return
(
$this
->
$field
!=
$this
->
attributeInitialValue
(
$field
));
}
else
{
return
parent
::
attributeHaveChanged
(
$field
);
}
}
/*! \brief Get a new SambaSID for a group */
/*! \brief Get a new SambaSID for a group */
function
getSambaSID
()
function
getSambaSID
()
{
{
...
...
bmortier
@bmortier
mentioned in issue
#1191 (closed)
·
Sep 02, 2017
mentioned in issue
#1191 (closed)
mentioned in issue #1191
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment