DirectorObjectForm: allow to choose apply rule type

This commit is contained in:
Thomas Gelf 2016-02-24 21:40:03 +01:00
parent c65d042ed4
commit 39f789aa7b
1 changed files with 4 additions and 0 deletions

View File

@ -801,6 +801,10 @@ abstract class DirectorObjectForm extends QuickForm
$types['external_object'] = $this->translate('External Object');
if ($this->object()->supportsApplyRules()) {
$types['apply'] = $this->translate('Apply rule');
}
if (! $this->hasObject()) {
$this->object()->object_type = $default;
}