Dimensions default value when length is removed

Created on 4 April 2013, over 12 years ago
Updated 18 August 2025, 6 days ago

http://drupalcode.org/project/physical.git/blob/refs/heads/7.x-1.x:/phys...

    if (isset($items[$delta]['length'])) {
      $value = array(
        'length' => round($items[$delta]['length'], 5),
        'width' => round($items[$delta]['width'], 5),
        'height' => round($items[$delta]['height'], 5),
        'unit' => $items[$delta]['unit'],
      );
    }

When length is removed with hook_physical_dimension_info_alter(&$dimensions), default values lost for edit form

πŸ› Bug report
Status

Closed: outdated

Version

1.0

Component

Code

Created by

πŸ‡¨πŸ‡³China hibersh

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024