Changeset 6723

Show
Ignore:
Timestamp:
10/06/08 10:46:57 (2 months ago)
Author:
jmathis
Message:

set location field with value in base.

Location:
trunk/centreon/www/include/configuration/configObject
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/centreon/www/include/configuration/configObject/contact/formContact.php

    r6646 r6723  
    214214        $form->addElement('select', 'contact_location', _("GMT / Location"), $GMTList); 
    215215        $form->setDefaults(array('contact_location' => '0')); 
    216         if (isset($cct["contact_location"])) 
     216        if (!isset($cct["contact_location"])) 
    217217                $cct["contact_location"] = 0; 
    218218        unset($GMTList); 
  • trunk/centreon/www/include/configuration/configObject/host/formHost.php

    r6649 r6723  
    293293        $form->addElement('select', 'host_location', _("GMT / Location"), $GMTList); 
    294294        $form->setDefaults(array('host_location' => '0')); 
    295         if (isset($host["host_location"])) 
     295        if (!isset($host["host_location"])) 
    296296                $host["host_location"] = 0; 
    297297        unset($GMTList);