Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
75eec3cf
Commit
75eec3cf
authored
May 26, 2016
by
Ad Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(config) set description when empty in legacy_config_get_interfaces
parent
2fd3a68d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
config.inc
src/etc/inc/config.inc
+1
-0
interfaces_assign.php
src/www/interfaces_assign.php
+1
-1
No files found.
src/etc/inc/config.inc
View file @
75eec3cf
...
...
@@ -73,6 +73,7 @@ function legacy_config_get_interfaces($filters = array())
}
}
if
(
$iface_match
)
{
$iface
[
'descr'
]
=
!
empty
(
$iface
[
'descr'
])
?
$iface
[
'descr'
]
:
strtoupper
(
$ifname
);
$interfaces
[
$ifname
]
=
$iface
;
}
}
...
...
src/www/interfaces_assign.php
View file @
75eec3cf
...
...
@@ -409,7 +409,7 @@ include("head.inc");
</thead>
<tbody>
<?php
foreach
(
$config
[
'interfaces'
]
as
$ifname
=>
$iface
)
:?>
foreach
(
legacy_config_get_interfaces
(
array
(
"virtual"
=>
false
))
as
$ifname
=>
$iface
)
:?>
<
tr
>
<
td
>
<
strong
><
u
><
span
onclick
=
"location.href='/interfaces.php?if=<?=
$ifname
;?>'"
style
=
"cursor: pointer;"
><?=!
empty
(
$iface
[
'descr'
])
?
$iface
[
'descr'
]
:
strtoupper
(
$ifname
);
?>
</span></u></strong>
...
...
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