Version 4.6.0
This commit is contained in:
1 parent
f79dcf067a
commit
517a5e1f70
2036 files changed
+110041
-26162
No files matched your search
@@ -109,6 +109,10 @@ class _Field extends \IPS\CustomField
|
||||
{
|
||||
parent::form( $form );
|
||||
|
||||
|
||||
unset( $form->elements['']['pf_search_type'] );
|
||||
\IPS\Member::loggedIn()->language()->words['pfield_displayoptions'] = \IPS\Member::loggedIn()->language()->addToStack('field_displayoptions');
|
||||
|
||||
$form->add( new \IPS\Helpers\Form\Radio( 'downloads_field_location', $this->id ? $this->display_location : 'below', FALSE, array( 'options' => array( 'sidebar' => 'idm_cfield_sidebar', 'below' => 'idm_cfield_below', 'tab' => 'idm_cfield_tab' ) ), NULL, NULL, NULL, 'idm_field_location' ) );
|
||||
|
||||
if ( \IPS\Application::appIsEnabled( 'nexus' ) and \IPS\Settings::i()->idm_nexus_on )
|
||||
@@ -141,13 +145,12 @@ class _Field extends \IPS\CustomField
|
||||
unset( $values['cf_topic'] );
|
||||
}
|
||||
|
||||
$values['search_type'] = ( $values['pf_search_type'] === NULL ) ? '' : $values['pf_search_type'];
|
||||
$values['allow_attachments'] = $values['pf_allow_attachments'];
|
||||
unset( $values['pf_search_type'] );
|
||||
unset( $values['pf_allow_attachments'] );
|
||||
|
||||
$values['display_location'] = $values['downloads_field_location'];
|
||||
$values['paid_field'] = $values['downloads_field_paid'];
|
||||
$values['paid_field'] = ( isset( $values['downloads_field_paid'] ) ) ? $values['downloads_field_paid'] : 0;
|
||||
unset( $values['downloads_field_location'], $values['downloads_field_paid'] );
|
||||
|
||||
return parent::formatFormValues( $values );
|
||||
|
||||
Reference in new issue
Block a user