}
$mform->addElement('searchableselector', 'requiredcapability', get_string('requiredcapability', 'webservice'), $capabilitychoices);
-
+
/// display notification error if the current requiredcapability doesn't exist anymore
if(empty($currentcapabilityexist)) {
global $OUTPUT;
$mform->setType('id', PARAM_INT);
$this->add_action_buttons(true);
-
+
$this->set_data($service);
}
}
function validation($data, $files) {
- $errors = parent::validation($data, $files);
+ $errors = parent::validation($data, $files);
return $errors;
}
}
$DB->update_record('external_services', $data);
add_to_log(1, 'webservice', 'edit', $CFG->wwwroot."/admin/settings.php?section=externalservices", get_string('editservice', 'webservice', $data));
}
-
+
redirect($returnurl);
}
/// Prepare the output
$o = '<p>' .implode(', ', $errors) . '</p>
<p>' . $tempindex->readableInfo() . '</p>';
- $o.= '<a href="index.php?action=edit_index&index=' .$index->getName() . '&table=' . $table->getName() .
+ $o.= '<a href="index.php?action=edit_index&index=' .$index->getName() . '&table=' . $table->getName() .
'&dir=' . urlencode(str_replace($CFG->dirroot, '', $dirpath)) . '">[' . $this->str['back'] . ']</a>';
$this->output = $o;
}