Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 1871

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

Opravy:
- fixes #504: Editace IP adresy (chyba po odstraneni whitelistu)

Zobrazit rozdíly:

freenetis/branches/1.1/application/i18n/cs_CZ/texts.php
'add new group' => 'Přidat novou skupinu',
'add new interface' => 'Přidat nové rozhraní',
'add new interface to device' => 'Přidat nové rozhraní k zařízení',
'add new internal interface' => 'Přidat nvé vnitřní rozhraní',
'add new interrupt of membership' => 'Přidat nové přerušení členství',
'add new invoice' => 'Přidat novou fakturu',
'add new invoice item' => 'Přidat novou položku faktury',
freenetis/branches/1.1/application/controllers/ip_addresses.php
$ip_address->subnet_id = $form_data['subnet_id'];
$ip_address->gateway = $form_data['gateway'];
$ip_address->service = $form_data['service'];
$ip_address->whitelisted = Ip_address_Model::NO_WHITELIST;
$ip_address->member_id = NULL;
$ip_address->save_throwable();
......
->options(arr::rbool())
->selected($ip_address->service);
$this->form->dropdown('whitelisted')
->label(__('Whitelist').': '.help::hint('whitelist'))
->options(Ip_address_Model::get_whitelist_types())
->selected($ip_address->whitelisted);
$this->form->submit('Save');
// validate form and save data
......
$ip_address->subnet_id = $form_data['subnet_id'];
$ip_address->gateway = $form_data['gateway'];
$ip_address->service = $form_data['service'];
$ip_address->whitelisted = $form_data['whitelisted'];
$ip_address->member_id = NULL;
$ip_address->save_throwable();
freenetis/branches/1.1/application/controllers/redirect.php
{
foreach($messages as $message)
{
// whitelisted IP addresses can be redirected only by
// redirections which ignore whitelist
//if ($ip->whitelisted && !$message->ignore_whitelist)
// continue;
// IP address can be manually redirected only to user message,
// interrupted membership message, debtor message, payment notice message
if ($message->type == Message_Model::USER_MESSAGE ||

Také k dispozici: Unified diff