SAAS-67: "Hardware Audio Out" shows when SaaS is enabled
- "Hardware Audio Out" is not visible when plan-level is not diabled
This commit is contained in:
parent
20fc49b7be
commit
68f142470a
|
@ -160,8 +160,10 @@ class PreferenceController extends Zend_Controller_Action
|
|||
|
||||
$num_of_stream = intval(Application_Model_Preference::GetNumOfStreams());
|
||||
$form = new Application_Form_StreamSetting();
|
||||
$form->setSetting($setting);
|
||||
$form->startFrom();
|
||||
if(Application_Model_Preference::GetPlanLevel() == 'disabled'){
|
||||
$form->setSetting($setting);
|
||||
$form->startFrom();
|
||||
}
|
||||
for($i=1; $i<=$num_of_stream; $i++){
|
||||
$subform = new Application_Form_StreamSettingSubForm();
|
||||
$subform->setPrefix($i);
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
<div style="clear:both"></div>
|
||||
<?php }?>
|
||||
<?php echo $this->statusMsg;?>
|
||||
<?php if($this->form->getElement('output_sound_device') != null){?>
|
||||
<fieldset class="padded">
|
||||
<legend>Hardware Audio Out</legend>
|
||||
<dl class="zend_form">
|
||||
|
@ -21,6 +22,7 @@
|
|||
</dd>
|
||||
</dl>
|
||||
</fieldset>
|
||||
<?php } ?>
|
||||
<?php
|
||||
for($i=1;$i<=$this->num_stream;$i++){
|
||||
echo $this->form->getSubform("s".$i."_subform");
|
||||
|
|
Loading…
Reference in New Issue