New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"inline_mixed" can not be used with "AdminPageFramework_Widget". #274

Closed
wadadanet opened this Issue Sep 14, 2017 · 1 comment

Comments

Projects
None yet
2 participants
@wadadanet

wadadanet commented Sep 14, 2017

"inline_mixed" can not be used with "AdminPageFramework_Widget".
Field Types in "inline_mixed" are displayed, but can not be saved.
Also, the repeatable function does not appear to work.

Versions

  • Admin Page Framework version: 3.8.15
  • WordPress version: 4.8.1
  • PHP version: 5.6.28

Code

class My_Widget extends AdminPageFramework_Widget {
	public function load( $oAdminWidget ) {
		$array = array(
			"1" => 1,
			"2" => 2,
			"3" => 3,
		);
		$this->addSettingField(
			array(
				'field_id' => 'my_id',
				'type' => 'inline_mixed',
				'title' => 'title',
				'repeatable' => true,
				'sortable' => true,
				'content' => array(
					array(
						'title'         => 'select',
						'field_id'      => 'select',
						'type'          => 'select',
						'label'         => $array,
					),
				),
			)
		);
	}
	public function content( $sContent, $aArguments, $aFormData ) {
	}
}
new My_Widget(
	'my widget',
	array(
		'description'   => 'description',
	)
);

Step

URL: /wp-admin/widgets.php

1. Select 2

image

2. Save

3. It returns to the state where "1" is selected

image

@michaeluno michaeluno added the Bug label Jul 7, 2018

@michaeluno

This comment has been minimized.

Show comment
Hide comment
@michaeluno

michaeluno Jul 7, 2018

Owner

I could confirm the problem. Thanks for the report.

Owner

michaeluno commented Jul 7, 2018

I could confirm the problem. Thanks for the report.

@michaeluno michaeluno added this to the 3.8.18 milestone Jul 16, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment