Commit dc897969 authored by Till Brehm's avatar Till Brehm
Browse files

Fixed: Issue #3314 usage of a POST value in autosub validator vauses issues with API

parent 9e1a303d
......@@ -84,7 +84,12 @@ class validate_domain {
global $app;
if(empty($field_value) || $field_name != 'subdomain') return; // none set
$check_domain = $_POST['domain'];
if(isset($app->remoting_lib->primary_id)) {
$check_domain = $app->remoting_lib->dataRecord['domain'];
} else {
$check_domain = $_POST['domain'];
}
$app->uses('ini_parser,getconf');
$settings = $app->getconf->get_global_config('domains');
if ($settings['use_domain_module'] == 'y') {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment