SF.net SVN: postfixadmin:[1271] trunk/model/AliasdomainHandler.php
Brought to you by:
christian_boltz,
gingerdog
From: <chr...@us...> - 2011-11-13 16:19:59
|
Revision: 1271 http://postfixadmin.svn.sourceforge.net/postfixadmin/?rev=1271&view=rev Author: christian_boltz Date: 2011-11-13 16:19:53 +0000 (Sun, 13 Nov 2011) Log Message: ----------- AliasdomainHandler.php - initStruct(): - if only one alias_domain available, filter it out from target_domain list Modified Paths: -------------- trunk/model/AliasdomainHandler.php Modified: trunk/model/AliasdomainHandler.php =================================================================== --- trunk/model/AliasdomainHandler.php 2011-11-13 00:11:45 UTC (rev 1270) +++ trunk/model/AliasdomainHandler.php 2011-11-13 16:19:53 UTC (rev 1271) @@ -45,6 +45,11 @@ if (isset($used_targets[$dom])) unset ($this->struct['alias_domain']['options'][$dom]); # don't allow chained domain aliases (domain1 -> domain2 -> domain3) } + if (count($this->struct['alias_domain']['options']) == 1) { # only one alias_domain available - filter it out from target_domain list + $keys = array_keys($this->struct['alias_domain']['options']); + unset ($this->struct['target_domain']['options'][$keys[0]]); + } + # TODO: hook to modify $this->struct } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |