Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
fusiondirectory
fusiondirectory-plugins
Commits
1510705c
Verified
Commit
1510705c
authored
6 years ago
by
Côme Chilliet
Browse files
Options
Download
Patches
Plain Diff
fix(plugins) Replace calls to setUnique(TRUE) by explicit calls
issue #5920
parent
70e1c839
dev
6104-mail-methods-refactor
6231-give-the-ability-to-the-webservice-to-notice-if-an-attribute-is-monovalued-or-multivalued
6237-add-requiredattrs-array-to-the-webservice-informations
6245-adapt-the-ci-to-the-reorganisation-of-the-dev-tools-and-fixing-the-trigger-downstream-pipelines
6250-supann-configuration-backend-requires-account-life-cycle-section
6280-plugins-update-plugins-to-take-into-consideration-the-new-directory-of-core-structure
6310-tasks-reminder-error-in-the-schema-duplicate-attribute-id
6311-put-the-version-1-5-in-all-yaml-for-fusiondirectory-1-5
6322-template-issue-when-creating-a-template-with-empty-password-error-message-should-not-be-seen-2
6332-zimbra-allows-update-of-data-for-unknown-domain-name-for-specific-individual-aliases
6337-webservice-issue-with-archiving-post-request-not-responding-but-successfully-archiving-user
6341-supann-extract-resources-states-sub-states-from-backend-configuration-to-their-own-objects
master
fusiondirectory-1.5
fusiondirectory-1.4
No related merge requests found
Changes
18
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
applications/admin/applications/class_applicationGeneric.inc
+1
-1
applications/admin/applications/class_applicationGeneric.inc
debconf/admin/debconfProfile/class_debconfProfileGeneric.inc
+1
-1
debconf/admin/debconfProfile/class_debconfProfileGeneric.inc
fai/admin/fai/class_faiHook.inc
+1
-1
fai/admin/fai/class_faiHook.inc
fai/admin/fai/class_faiPackage.inc
+1
-1
fai/admin/fai/class_faiPackage.inc
fai/admin/fai/class_faiPartitionTable.inc
+1
-1
fai/admin/fai/class_faiPartitionTable.inc
fai/admin/fai/class_faiProfile.inc
+1
-1
fai/admin/fai/class_faiProfile.inc
fai/admin/fai/class_faiScript.inc
+1
-1
fai/admin/fai/class_faiScript.inc
fai/admin/fai/class_faiVariable.inc
+1
-1
fai/admin/fai/class_faiVariable.inc
netgroups/admin/netgroups/class_netgroup.inc
+1
-1
netgroups/admin/netgroups/class_netgroup.inc
opsi/admin/opsi/class_opsiOnDemandList.inc
+1
-1
opsi/admin/opsi/class_opsiOnDemandList.inc
opsi/admin/opsi/class_opsiSoftwareList.inc
+1
-1
opsi/admin/opsi/class_opsiSoftwareList.inc
repository/admin/repository/class_buildRepository.inc
+1
-1
repository/admin/repository/class_buildRepository.inc
repository/admin/repository/class_repositoryDistribution.inc
+1
-1
repository/admin/repository/class_repositoryDistribution.inc
repository/admin/repository/class_repositorySection.inc
+1
-1
repository/admin/repository/class_repositorySection.inc
sogo/admin/sogo/class_sogoResource.inc
+1
-1
sogo/admin/sogo/class_sogoResource.inc
supann/admin/supannStructures/class_entite.inc
+2
-2
supann/admin/supannStructures/class_entite.inc
supann/admin/supannStructures/class_etablissement.inc
+4
-4
supann/admin/supannStructures/class_etablissement.inc
systems/admin/systems/class_workstationGeneric.inc
+1
-1
systems/admin/systems/class_workstationGeneric.inc
with
22 additions
and
22 deletions
+22
-22
applications/admin/applications/class_applicationGeneric.inc
+
1
−
1
View file @
1510705c
...
@@ -113,7 +113,7 @@ class application extends simplePlugin
...
@@ -113,7 +113,7 @@ class application extends simplePlugin
{
{
parent
::
__construct
(
$dn
,
$object
,
$parent
,
$mainTab
);
parent
::
__construct
(
$dn
,
$object
,
$parent
,
$mainTab
);
$this
->
attributesAccess
[
'cn'
]
->
setUnique
(
TRUE
);
$this
->
attributesAccess
[
'cn'
]
->
setUnique
(
'one'
);
$filename
=
'./plugins/applications/images/default_icon.png'
;
$filename
=
'./plugins/applications/images/default_icon.png'
;
...
...
This diff is collapsed.
Click to expand it.
debconf/admin/debconfProfile/class_debconfProfileGeneric.inc
+
1
−
1
View file @
1510705c
...
@@ -198,7 +198,7 @@ class debconfProfileGeneric extends simplePlugin
...
@@ -198,7 +198,7 @@ class debconfProfileGeneric extends simplePlugin
{
{
parent
::
__construct
(
$dn
,
$object
,
$parent
,
$mainTab
);
parent
::
__construct
(
$dn
,
$object
,
$parent
,
$mainTab
);
$this
->
attributesAccess
[
'ou'
]
->
setUnique
(
TRUE
);
$this
->
attributesAccess
[
'ou'
]
->
setUnique
(
'one'
);
if
(
count
(
$this
->
attributesAccess
[
'debconfEntries'
]
->
attributes
)
==
0
)
{
if
(
count
(
$this
->
attributesAccess
[
'debconfEntries'
]
->
attributes
)
==
0
)
{
unset
(
$this
->
attributesInfo
[
'entries'
]);
unset
(
$this
->
attributesInfo
[
'entries'
]);
$this
->
attributesAccess
[
'ou'
]
->
setVisible
(
FALSE
);
$this
->
attributesAccess
[
'ou'
]
->
setVisible
(
FALSE
);
...
...
This diff is collapsed.
Click to expand it.
fai/admin/fai/class_faiHook.inc
+
1
−
1
View file @
1510705c
...
@@ -99,7 +99,7 @@ class faiHook extends faiSimplePluginClass
...
@@ -99,7 +99,7 @@ class faiHook extends faiSimplePluginClass
{
{
parent
::
__construct
(
$dn
,
$object
,
$parent
,
$mainTab
);
parent
::
__construct
(
$dn
,
$object
,
$parent
,
$mainTab
);
$this
->
attributesAccess
[
'cn'
]
->
setUnique
(
TRUE
);
$this
->
attributesAccess
[
'cn'
]
->
setUnique
(
'one'
);
$this
->
attributesAccess
[
'hooks'
]
->
setLinearRendering
(
FALSE
);
$this
->
attributesAccess
[
'hooks'
]
->
setLinearRendering
(
FALSE
);
}
}
...
...
This diff is collapsed.
Click to expand it.
fai/admin/fai/class_faiPackage.inc
+
1
−
1
View file @
1510705c
...
@@ -443,7 +443,7 @@ class faiPackage extends faiSimplePluginClass
...
@@ -443,7 +443,7 @@ class faiPackage extends faiSimplePluginClass
{
{
parent
::
__construct
(
$dn
,
$object
,
$parent
,
$mainTab
);
parent
::
__construct
(
$dn
,
$object
,
$parent
,
$mainTab
);
$this
->
attributesAccess
[
'cn'
]
->
setUnique
(
TRUE
);
$this
->
attributesAccess
[
'cn'
]
->
setUnique
(
'one'
);
if
(
$this
->
FAIdebianRelease
===
''
)
{
if
(
$this
->
FAIdebianRelease
===
''
)
{
/* Assemble release name */
/* Assemble release name */
...
...
This diff is collapsed.
Click to expand it.
fai/admin/fai/class_faiPartitionTable.inc
+
1
−
1
View file @
1510705c
...
@@ -370,7 +370,7 @@ class faiPartitionTable extends faiSimplePluginClass
...
@@ -370,7 +370,7 @@ class faiPartitionTable extends faiSimplePluginClass
{
{
parent
::
__construct
(
$dn
,
$object
,
$parent
,
$mainTab
);
parent
::
__construct
(
$dn
,
$object
,
$parent
,
$mainTab
);
$this
->
attributesAccess
[
'cn'
]
->
setUnique
(
TRUE
);
$this
->
attributesAccess
[
'cn'
]
->
setUnique
(
'one'
);
}
}
protected
function
shouldSave
()
protected
function
shouldSave
()
...
...
This diff is collapsed.
Click to expand it.
fai/admin/fai/class_faiProfile.inc
+
1
−
1
View file @
1510705c
...
@@ -72,7 +72,7 @@ class faiProfile extends faiSimplePluginClass
...
@@ -72,7 +72,7 @@ class faiProfile extends faiSimplePluginClass
{
{
parent
::
__construct
(
$dn
,
$object
,
$parent
,
$mainTab
);
parent
::
__construct
(
$dn
,
$object
,
$parent
,
$mainTab
);
$this
->
attributesAccess
[
'cn'
]
->
setUnique
(
TRUE
);
$this
->
attributesAccess
[
'cn'
]
->
setUnique
(
'one'
);
/* Build filter */
/* Build filter */
$types
=
array
(
'faiVariable'
,
'faiHook'
,
'faiScript'
,
'faiPackage'
,
'faiPartitionTable'
,
'faiTemplate'
);
$types
=
array
(
'faiVariable'
,
'faiHook'
,
'faiScript'
,
'faiPackage'
,
'faiPartitionTable'
,
'faiTemplate'
);
...
...
This diff is collapsed.
Click to expand it.
fai/admin/fai/class_faiScript.inc
+
1
−
1
View file @
1510705c
...
@@ -96,7 +96,7 @@ class faiScript extends faiSimplePluginClass
...
@@ -96,7 +96,7 @@ class faiScript extends faiSimplePluginClass
{
{
parent
::
__construct
(
$dn
,
$object
,
$parent
,
$mainTab
);
parent
::
__construct
(
$dn
,
$object
,
$parent
,
$mainTab
);
$this
->
attributesAccess
[
'cn'
]
->
setUnique
(
TRUE
);
$this
->
attributesAccess
[
'cn'
]
->
setUnique
(
'one'
);
$this
->
attributesAccess
[
'scripts'
]
->
setLinearRendering
(
FALSE
);
$this
->
attributesAccess
[
'scripts'
]
->
setLinearRendering
(
FALSE
);
}
}
...
...
This diff is collapsed.
Click to expand it.
fai/admin/fai/class_faiVariable.inc
+
1
−
1
View file @
1510705c
...
@@ -90,7 +90,7 @@ class faiVariable extends faiSimplePluginClass
...
@@ -90,7 +90,7 @@ class faiVariable extends faiSimplePluginClass
{
{
parent
::
__construct
(
$dn
,
$object
,
$parent
,
$mainTab
);
parent
::
__construct
(
$dn
,
$object
,
$parent
,
$mainTab
);
$this
->
attributesAccess
[
'cn'
]
->
setUnique
(
TRUE
);
$this
->
attributesAccess
[
'cn'
]
->
setUnique
(
'one'
);
$this
->
attributesAccess
[
'variables'
]
->
setLinearRendering
(
FALSE
);
$this
->
attributesAccess
[
'variables'
]
->
setLinearRendering
(
FALSE
);
}
}
...
...
This diff is collapsed.
Click to expand it.
netgroups/admin/netgroups/class_netgroup.inc
+
1
−
1
View file @
1510705c
...
@@ -109,7 +109,7 @@ class netgroup extends simplePlugin
...
@@ -109,7 +109,7 @@ class netgroup extends simplePlugin
global
$config
;
global
$config
;
parent
::
__construct
(
$dn
,
$object
,
$parent
,
$mainTab
);
parent
::
__construct
(
$dn
,
$object
,
$parent
,
$mainTab
);
$this
->
attributesAccess
[
'cn'
]
->
setUnique
(
TRUE
);
$this
->
attributesAccess
[
'cn'
]
->
setUnique
(
'one'
);
$this
->
attributesAccess
[
'nisNetgroupTriple'
]
->
setVisible
(
FALSE
);
$this
->
attributesAccess
[
'nisNetgroupTriple'
]
->
setVisible
(
FALSE
);
$this
->
attributesAccess
[
'memberUsers'
]
->
setInLdap
(
FALSE
);
$this
->
attributesAccess
[
'memberUsers'
]
->
setInLdap
(
FALSE
);
$this
->
attributesAccess
[
'memberSystems'
]
->
setInLdap
(
FALSE
);
$this
->
attributesAccess
[
'memberSystems'
]
->
setInLdap
(
FALSE
);
...
...
This diff is collapsed.
Click to expand it.
opsi/admin/opsi/class_opsiOnDemandList.inc
+
1
−
1
View file @
1510705c
...
@@ -78,7 +78,7 @@ class opsiOnDemandList extends opsiSoftwareList
...
@@ -78,7 +78,7 @@ class opsiOnDemandList extends opsiSoftwareList
{
{
simplePlugin
::
__construct
(
$dn
,
$object
,
$parent
,
$mainTab
);
simplePlugin
::
__construct
(
$dn
,
$object
,
$parent
,
$mainTab
);
$this
->
attributesAccess
[
'cn'
]
->
setUnique
(
TRUE
);
$this
->
attributesAccess
[
'cn'
]
->
setUnique
(
'one'
);
}
}
public
function
server_changed
(
$opsi_args
=
NULL
)
public
function
server_changed
(
$opsi_args
=
NULL
)
...
...
This diff is collapsed.
Click to expand it.
opsi/admin/opsi/class_opsiSoftwareList.inc
+
1
−
1
View file @
1510705c
...
@@ -93,7 +93,7 @@ class opsiSoftwareList extends simplePlugin
...
@@ -93,7 +93,7 @@ class opsiSoftwareList extends simplePlugin
{
{
parent
::
__construct
(
$dn
,
$object
,
$parent
,
$mainTab
);
parent
::
__construct
(
$dn
,
$object
,
$parent
,
$mainTab
);
$this
->
attributesAccess
[
'cn'
]
->
setUnique
(
TRUE
);
$this
->
attributesAccess
[
'cn'
]
->
setUnique
(
'one'
);
$this
->
attributesAccess
[
'fdOpsiLocalbootProduct'
]
->
attribute
->
attributes
[
0
]
->
setSubmitForm
(
'product_changed'
);
$this
->
attributesAccess
[
'fdOpsiLocalbootProduct'
]
->
attribute
->
attributes
[
0
]
->
setSubmitForm
(
'product_changed'
);
}
}
...
...
This diff is collapsed.
Click to expand it.
repository/admin/repository/class_buildRepository.inc
+
1
−
1
View file @
1510705c
...
@@ -105,7 +105,7 @@ class buildRepository extends simplePlugin
...
@@ -105,7 +105,7 @@ class buildRepository extends simplePlugin
{
{
parent
::
__construct
(
$dn
,
$object
,
$parent
,
$mainTab
);
parent
::
__construct
(
$dn
,
$object
,
$parent
,
$mainTab
);
$this
->
attributesAccess
[
'cn'
]
->
setUnique
(
TRUE
);
$this
->
attributesAccess
[
'cn'
]
->
setUnique
(
'one'
);
$distros
=
objects
::
ls
(
'repoDistribution'
,
array
(
'cn'
=>
'1'
,
'fdRepoSection'
=>
'*'
));
$distros
=
objects
::
ls
(
'repoDistribution'
,
array
(
'cn'
=>
'1'
,
'fdRepoSection'
=>
'*'
));
$choices
=
array
();
$choices
=
array
();
...
...
This diff is collapsed.
Click to expand it.
repository/admin/repository/class_repositoryDistribution.inc
+
1
−
1
View file @
1510705c
...
@@ -83,7 +83,7 @@ class repositoryDistribution extends simplePlugin
...
@@ -83,7 +83,7 @@ class repositoryDistribution extends simplePlugin
{
{
parent
::
__construct
(
$dn
,
$object
,
$parent
,
$mainTab
);
parent
::
__construct
(
$dn
,
$object
,
$parent
,
$mainTab
);
$this
->
attributesAccess
[
'cn'
]
->
setUnique
(
TRUE
);
$this
->
attributesAccess
[
'cn'
]
->
setUnique
(
'one'
);
$distros
=
objects
::
ls
(
'repoDistribution'
,
'cn'
);
$distros
=
objects
::
ls
(
'repoDistribution'
,
'cn'
);
$this
->
attributesAccess
[
'fdBasedOn'
]
->
attribute
->
setChoices
(
array_values
(
$distros
));
$this
->
attributesAccess
[
'fdBasedOn'
]
->
attribute
->
setChoices
(
array_values
(
$distros
));
...
...
This diff is collapsed.
Click to expand it.
repository/admin/repository/class_repositorySection.inc
+
1
−
1
View file @
1510705c
...
@@ -73,7 +73,7 @@ class repositorySection extends simplePlugin
...
@@ -73,7 +73,7 @@ class repositorySection extends simplePlugin
{
{
parent
::
__construct
(
$dn
,
$object
,
$parent
,
$mainTab
);
parent
::
__construct
(
$dn
,
$object
,
$parent
,
$mainTab
);
$this
->
attributesAccess
[
'cn'
]
->
setUnique
(
TRUE
);
$this
->
attributesAccess
[
'cn'
]
->
setUnique
(
'one'
);
$sections
=
objects
::
ls
(
'repoSection'
,
'cn'
);
$sections
=
objects
::
ls
(
'repoSection'
,
'cn'
);
$this
->
attributesAccess
[
'fdBasedOn'
]
->
attribute
->
setChoices
(
array_values
(
$sections
));
$this
->
attributesAccess
[
'fdBasedOn'
]
->
attribute
->
setChoices
(
array_values
(
$sections
));
...
...
This diff is collapsed.
Click to expand it.
sogo/admin/sogo/class_sogoResource.inc
+
1
−
1
View file @
1510705c
...
@@ -81,7 +81,7 @@ class sogoResource extends simplePlugin
...
@@ -81,7 +81,7 @@ class sogoResource extends simplePlugin
{
{
parent
::
__construct
(
$dn
,
$object
,
$parent
,
$mainTab
);
parent
::
__construct
(
$dn
,
$object
,
$parent
,
$mainTab
);
$this
->
attributesAccess
[
'uid'
]
->
setUnique
(
TRUE
);
$this
->
attributesAccess
[
'uid'
]
->
setUnique
(
'one'
);
$this
->
attributesAccess
[
'sn'
]
->
setValue
(
$this
->
attributesAccess
[
'uid'
]
->
getValue
());
$this
->
attributesAccess
[
'sn'
]
->
setValue
(
$this
->
attributesAccess
[
'uid'
]
->
getValue
());
$this
->
attributesAccess
[
'cn'
]
->
setValue
(
$this
->
attributesAccess
[
'uid'
]
->
getValue
());
$this
->
attributesAccess
[
'cn'
]
->
setValue
(
$this
->
attributesAccess
[
'uid'
]
->
getValue
());
...
...
This diff is collapsed.
Click to expand it.
supann/admin/supannStructures/class_entite.inc
+
2
−
2
View file @
1510705c
...
@@ -132,8 +132,8 @@ class entite extends simplePlugin
...
@@ -132,8 +132,8 @@ class entite extends simplePlugin
}
}
$this
->
attributesAccess
[
'supannCodeEntiteParent'
]
->
attribute
->
setChoices
(
$entity_codes
,
$entity_labels
);
$this
->
attributesAccess
[
'supannCodeEntiteParent'
]
->
attribute
->
setChoices
(
$entity_codes
,
$entity_labels
);
$this
->
attributesAccess
[
'ou'
]
->
setUnique
(
TRUE
);
$this
->
attributesAccess
[
'ou'
]
->
setUnique
(
'one'
);
$this
->
attributesAccess
[
'supannCodeEntite'
]
->
setUnique
(
TRUE
);
$this
->
attributesAccess
[
'supannCodeEntite'
]
->
setUnique
(
'whole'
,
'(objectClass=supannEntite)'
);
$this
->
attributesAccess
[
'supannRefId'
]
->
setUnique
(
'whole'
);
$this
->
attributesAccess
[
'supannRefId'
]
->
setUnique
(
'whole'
);
}
}
}
}
This diff is collapsed.
Click to expand it.
supann/admin/supannStructures/class_etablissement.inc
+
4
−
4
View file @
1510705c
...
@@ -126,10 +126,10 @@ class etablissement extends simplePlugin
...
@@ -126,10 +126,10 @@ class etablissement extends simplePlugin
$this
->
set_acl_base
(
$config
->
current
[
'BASE'
]);
$this
->
set_acl_base
(
$config
->
current
[
'BASE'
]);
}
}
$this
->
attributesAccess
[
'o'
]
->
setUnique
(
TRUE
);
$this
->
attributesAccess
[
'o'
]
->
setUnique
(
'one'
);
$this
->
attributesAccess
[
'supannCodeEntite'
]
->
setUnique
(
TRUE
);
$this
->
attributesAccess
[
'supannCodeEntite'
]
->
setUnique
(
'whole'
,
'(objectClass=supannEntite)'
);
$this
->
attributesAccess
[
'supannEtablissement'
]
->
setUnique
(
TRUE
);
$this
->
attributesAccess
[
'supannEtablissement'
]
->
setUnique
(
'one'
);
$this
->
attributesAccess
[
'eduOrgLegalName'
]
->
setUnique
(
TRUE
);
$this
->
attributesAccess
[
'eduOrgLegalName'
]
->
setUnique
(
'one'
);
$root_code
=
$this
->
get_root_code
();
$root_code
=
$this
->
get_root_code
();
$this
->
attributesAccess
[
'set_root'
]
->
setInLdap
(
FALSE
);
$this
->
attributesAccess
[
'set_root'
]
->
setInLdap
(
FALSE
);
...
...
This diff is collapsed.
Click to expand it.
systems/admin/systems/class_workstationGeneric.inc
+
1
−
1
View file @
1510705c
...
@@ -108,7 +108,7 @@ class workstationGeneric extends ipHostPlugin
...
@@ -108,7 +108,7 @@ class workstationGeneric extends ipHostPlugin
{
{
parent
::
__construct
(
$dn
,
$object
,
$parent
,
$mainTab
);
parent
::
__construct
(
$dn
,
$object
,
$parent
,
$mainTab
);
$this
->
attributesAccess
[
'cn'
]
->
setUnique
(
TRUE
);
$this
->
attributesAccess
[
'cn'
]
->
setUnique
(
'one'
);
}
}
protected
function
post_remove
()
protected
function
post_remove
()
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets