Skip to content

Leading zero values not respected #869

@gyrus

Description

@gyrus

If a select is populated with, say, months, where leading zeros are added to numeric values (e.g. December is 12 but January is 01) the correct value should be selected after saving.

However, this isn't the case. I think it's these lines in 2.2.4, includes/types/CMB2_Type_Multi_Base.php:77:

	if ( is_numeric( $value ) ) {
		$value = intval( $value );
	}

Is there a reason for this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions