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
1b59b311
Commit
1b59b311
authored
Dec 06, 2016
by
Côme Chilliet
Browse files
Fixes #5254 Trying to fix foreignKey problems
parent
41ccf13b
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/simpleplugin/class_simplePlugin.inc
View file @
1b59b311
...
...
@@ -1395,7 +1395,7 @@ class simplePlugin extends plugin
// For each tab concerned
foreach
(
$tabRefs
[
'refs'
]
as
$tab
=>
$fieldRefs
)
{
// If the tab is activated on this object
if
(
isset
(
$tabobject
->
by_object
[
$tab
]))
{
if
(
isset
(
$tabobject
->
by_object
[
$tab
])
&&
(
$tabobject
->
by_object
[
$tab
]
->
is_account
||
$tabobject
->
by_object
[
$tab
]
->
ignore_account
)
)
{
// For each field
foreach
(
$fieldRefs
as
$ofield
=>
$field
)
{
// call plugin::foreignKeyUpdate(ldapname, oldvalue, newvalue, source) on the object
...
...
@@ -1412,9 +1412,9 @@ class simplePlugin extends plugin
);
}
$tabobject
->
by_object
[
$tab
]
->
save_object
();
$tabobject
->
by_object
[
$tab
]
->
save
();
}
}
$tabobject
->
save
();
}
elseif
(
$mode
==
'references'
)
{
// For each tab concerned
foreach
(
$tabRefs
[
'refs'
]
as
$tab
=>
$tab_infos
)
{
...
...
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