Skip to content

Commit dc89796

Browse files
author
Till Brehm
committed
Fixed: Issue #3314 usage of a POST value in autosub validator vauses issues with API
1 parent 9e1a303 commit dc89796

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

interface/lib/classes/validate_domain.inc.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,12 @@ function web_domain_autosub($field_name, $field_value, $validator) {
8484
global $app;
8585
if(empty($field_value) || $field_name != 'subdomain') return; // none set
8686

87-
$check_domain = $_POST['domain'];
87+
if(isset($app->remoting_lib->primary_id)) {
88+
$check_domain = $app->remoting_lib->dataRecord['domain'];
89+
} else {
90+
$check_domain = $_POST['domain'];
91+
}
92+
8893
$app->uses('ini_parser,getconf');
8994
$settings = $app->getconf->get_global_config('domains');
9095
if ($settings['use_domain_module'] == 'y') {

0 commit comments

Comments
 (0)