Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 1493

Přidáno uživatelem Ondřej Fibich před více než 12 roky(ů)

Upravy:
- pridavani bridge (#185)

Zobrazit rozdíly:

freenetis/branches/network/application/controllers/ifaces.php
$bridge_form = $form->group('Bridge settings');
$bridge_form->dropdown('children_interfaces')
$bridge_form->dropdown('children_interfaces[]')
->multiple('multiple')
->options($child_ifaces)
->size(15);
......
}
else if ($iface->type == Iface_Model::TYPE_BRIDGE)
{
// @todo
foreach ($form_data['children_interfaces'] as $child)
{
$iface_relationship = new Ifaces_relationship_Model();
$iface_relationship->iface_id = $child;
$iface_relationship->parent_iface_id = $iface->id;
$iface_relationship->save_throwable();
}
}
$iface->transaction_commit();
status::success('Interface has been successfully saved.');
$this->redirect('show', $iface->id);
}

Také k dispozici: Unified diff