Development

Changeset 3068

You must first sign up to be able to contribute.

Changeset 3068

Show
Ignore:
Timestamp:
12/17/06 16:57:59 (2 years ago)
Author:
chtito
Message:

minor improvements

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/helper/ObjectHelper.php

    r2971 r3068  
    3535  $options = _parse_attributes($options); 
    3636 
    37   $value = _get_object_value($object, $method, $default_value, $param = 'm/d/y'); 
     37  $value = _get_object_value($object, $method, $default_value, $param = 'Y-m-d'); 
    3838 
    3939  return input_date_tag(_convert_method_to_name($method, $options), $value, $options); 
     
    160160    // which method to call? 
    161161    $methodToCall = ''; 
    162     foreach (array($text_method, 'toString', '__toString', 'getPrimaryKey') as $method) 
     162    foreach (array($text_method, '__toString', 'toString', 'getPrimaryKey') as $method) 
    163163    { 
    164164      if (is_callable(array($objects[0], $method)))