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
3065134b
Commit
3065134b
authored
Jan 17, 2017
by
Côme Chilliet
Browse files
Fixes #4358 Adding support for generic template apply action
parent
0339fe31
Changes
1
Show whitespace changes
Inline
Side-by-side
include/simpleplugin/class_simpleManagement.inc
View file @
3065134b
...
...
@@ -289,6 +289,9 @@ class simpleManagement extends management
}
}
}
if
(
$this
->
autoActions
&&
!
$this
->
skipTemplates
)
{
$this
->
registerAction
(
'template_apply'
,
'newEntryFromTemplate'
);
}
$this
->
headpage
->
refreshBasesList
();
}
...
...
@@ -458,7 +461,15 @@ class simpleManagement extends management
}
else
{
$dn
=
NULL
;
}
if
(
$action
==
'template_apply'
)
{
if
(
$dn
===
NULL
)
{
return
;
}
$type
=
$this
->
getType
(
$dn
);
$type
=
preg_replace
(
'/^template_/'
,
''
,
$type
);
}
else
{
$type
=
preg_replace
(
'/^template_apply_/'
,
''
,
$action
);
}
$this
->
dialogObject
=
new
templateDialog
(
$this
,
$type
,
$dn
);
}
...
...
Write
Preview
Markdown
is supported
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