fixed buttons to select user/host for new entry

This commit is contained in:
Roland Gruber 2010-10-02 10:41:26 +00:00
parent 24689a9312
commit ae3cf886ed
1 changed files with 2 additions and 2 deletions

View File

@ -211,10 +211,10 @@ class nisnetgroup extends baseModule {
for ($i = 0; $i < sizeof($this->attributes['nisNetgroupTriple']); $i++) {
$triple = substr($this->attributes['nisNetgroupTriple'][$i], 1, strlen($this->attributes['nisNetgroupTriple'][$i]) - 2);
$triple = explode(',', $triple);
if (isset($_POST['form_subpage_nisnetgroup_attributes_select']) && ($_POST['type'] == 'host') && ($_POST['position'] == $i)) {
if (isset($_POST['form_subpage_nisnetgroup_attributes_select']) && ($_POST['type'] == 'host') && ($_POST['position'] == strval($i))) {
$triple[0] = $_POST['selectBox'];
}
if (isset($_POST['form_subpage_nisnetgroup_attributes_select']) && ($_POST['type'] == 'user') && ($_POST['position'] == $i)) {
if (isset($_POST['form_subpage_nisnetgroup_attributes_select']) && ($_POST['type'] == 'user') && ($_POST['position'] == strval($i))) {
$triple[1] = $_POST['selectBox'];
}
$hostField = new htmlInputField('host_' . $i, $triple[0]);