Skip to content

Commit

Permalink
Modify Parent Service element's tool tip in Dependencies form
Browse files Browse the repository at this point in the history
Modify the Parent Service element's tool tip in Dependencies form to suggest the format to input service custom variables.
  • Loading branch information
raviks789 committed Mar 10, 2021
1 parent c77f6e1 commit 804f2a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion application/forms/IcingaDependencyForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,8 @@ protected function addObjectsElement()
'label' => $this->translate('Parent Service'),
'description' => $this->translate(
'Optional. The parent service. If omitted this dependency'
. ' object is treated as host dependency.'
. ' object is treated as host dependency. You might want to refer'
. ' Service Custom Variables via $service.vars.varname$'
),
'class' => "autosubmit director-suggest",
'data-suggestion-context' => 'servicenames',
Expand Down
2 changes: 1 addition & 1 deletion library/Director/Objects/IcingaDependency.php
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ protected function getRelatedProperty($key)
// handle special case for plain string parent service on Dependency
// Apply rules
if ($related === null && $key === 'parent_service'
&& (null !== $this->get('parent_service_by_name')
&& (null !== $this->get('parent_service_by_name')
&& !$this->isServiceCustomVar($this->get('parent_service_by_name'))
)
) {
Expand Down

0 comments on commit 804f2a7

Please sign in to comment.