Project

General

Profile

« Previous | Next » 

Revision c0223d83

Added by Andreas Kohlbecker over 5 years ago

fix #7601 fixing timeperiod with only start value

View differences:

modules/cdm_dataportal/cdm_api/cdm_api.module
751 751
      $dateString = partialToDate($period->start, $stripZeros, $format);
752 752
    }
753 753
    if ($period->end) {
754
      $dateString .= (strlen($dateString) > 0 ? ' ' . t('to') . ' ' : '') . partialToDate($period->end, $stripZeros, $format);
754
      $end_str = partialToDate($period->end, $stripZeros, $format);
755
      $dateString .= ($dateString && $end_str > 0 ? ' ' . t('to') . ' ' : '') . $end_str;
755 756
    }
756 757
  }
757 758
  return $dateString;
modules/cdm_dataportal/cdm_dataportal.module
1136 1136
/**
1137 1137
 * @todo Please document this function.
1138 1138
 * @see http://drupal.org/node/1354
1139
 * @throws Exception
1139 1140
 */
1140 1141
function cdm_dataportal_view_reference($uuid, $arg2 = NULL) {
1141 1142

  

Also available in: Unified diff