Revize 7dafd607
Přidáno uživatelem Michal Kliment před více než 9 roky(ů)
application/controllers/ifaces.php | ||
---|---|---|
{
|
||
$actions->add_action()
|
||
->icon_action('show')
|
||
->url('devices/show_ip_address');
|
||
->url('ip_addresses/show');
|
||
}
|
||
|
||
if ($this->acl_check_edit(
|
||
... | ... | |
{
|
||
$actions->add_action('id')
|
||
->icon_action('show')
|
||
->url('devices/show_iface')
|
||
->url('ifaces/show')
|
||
->class('popup_link');
|
||
}
|
||
|
||
... | ... | |
$im = new Iface_Model();
|
||
|
||
// iface type doesn't exist
|
||
if (!$im->get_type($type))
|
||
if (!Iface_Model::get_type($type))
|
||
{
|
||
Controller::error(RECORD);
|
||
}
|
||
... | ... | |
}
|
||
|
||
// iface type doesn't exist
|
||
if (!$iface->get_type($type))
|
||
if (!Iface_Model::get_type($type))
|
||
{
|
||
// some wrong added ifaces from the past may have type set to zero
|
||
if ($type == 0)
|
||
... | ... | |
// this code resolves (#310)
|
||
else if ($old_type != $iface->type)
|
||
{
|
||
$mediums = $iface->get_types_has_link_with_medium($iface->type);
|
||
$mediums = Iface_Model::get_types_has_link_with_medium($iface->type);
|
||
|
||
if ($iface->link_id &&
|
||
!array_key_exists($iface->link->medium, $mediums))
|
||
... | ... | |
)
|
||
)
|
||
->link(
|
||
'devices/show_iface/'.$iface->id,
|
||
'ifaces/show/'.$iface->id,
|
||
$name, $this->acl_check_view(
|
||
'Ifaces_Controller', 'iface',
|
||
$iface->device->user->member->id
|
Také k dispozici: Unified diff
Release 1.1.12