Correct defaults for call transfer
This field is an enum in db and so must be on/off
This commit is contained in:
parent
fc9c060b26
commit
f7d88e68bb
|
@ -166,7 +166,7 @@ class Sccp extends \FreePBX\modules\Core\Driver {
|
||||||
"flag" => $flag++
|
"flag" => $flag++
|
||||||
),
|
),
|
||||||
"transfer" => array(
|
"transfer" => array(
|
||||||
"value" => "yes",
|
"value" => "on",
|
||||||
"flag" => $flag++
|
"flag" => $flag++
|
||||||
),
|
),
|
||||||
"adhocNumber" => array(
|
"adhocNumber" => array(
|
||||||
|
@ -301,10 +301,10 @@ class Sccp extends \FreePBX\modules\Core\Driver {
|
||||||
|
|
||||||
# !TODO!: -TODO-: is there no easier way to specify a boolean radio group ? No.
|
# !TODO!: -TODO-: is there no easier way to specify a boolean radio group ? No.
|
||||||
unset($select);
|
unset($select);
|
||||||
$select[] = array('value' => 'yes', 'text' => 'Yes');
|
$select[] = array('value' => 'on', 'text' => 'On');
|
||||||
$select[] = array('value' => 'no', 'text' => 'No');
|
$select[] = array('value' => 'off', 'text' => 'Off');
|
||||||
$tt = _("Allow call transfer.");
|
$tt = _("Allow call transfer.");
|
||||||
$tmparr['transfer'] = array('prompttext' => _('Call Transfer'), 'value' => 'yes', 'tt' => $tt, 'select' => $select, 'level' => 1, 'type' => 'radio');
|
$tmparr['transfer'] = array('prompttext' => _('Call Transfer'), 'value' => 'on', 'tt' => $tt, 'select' => $select, 'level' => 1, 'type' => 'radio');
|
||||||
|
|
||||||
unset($select);
|
unset($select);
|
||||||
$select[] = array('value' => 'yes', 'text' => 'Yes');
|
$select[] = array('value' => 'yes', 'text' => 'Yes');
|
||||||
|
|
Loading…
Reference in a new issue