From 1d46a3ad84e84fd5737ee5e482fbe154f4ad9448 Mon Sep 17 00:00:00 2001 From: Marius Burkard <m.burkard@pixcept.de> Date: Wed, 20 Apr 2016 10:58:03 -0400 Subject: [PATCH] - Autoresponder end_date check fails on disabled autoresponder, Fixes: #3823 --- interface/lib/classes/validate_domain.inc.php | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/interface/lib/classes/validate_domain.inc.php b/interface/lib/classes/validate_domain.inc.php index 7ca6006..b572467 100644 --- a/interface/lib/classes/validate_domain.inc.php +++ b/interface/lib/classes/validate_domain.inc.php @@ -84,7 +84,12 @@ 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') { -- Gitblit v1.9.1