Development

#2861 (sfAdminGenerator.class.php getColumnFilterTag() Component type to list??)

You must first sign up to be able to contribute.

Ticket #2861 (closed defect: fixed)

Opened 10 months ago

Last modified 5 months ago

sfAdminGenerator.class.php getColumnFilterTag() Component type to list??

Reported by: katana Assigned to: fabien
Priority: minor Milestone: 1.0.17
Component: other Version: 1.0.16
Keywords: sfAdminGenerator Cc:
Qualification: Ready for core team

Description

  /**
   * Returns HTML code for a column in filter mode.
   *
   * @param string  The column name
   * @param array   The parameters
   *
   * @return string HTML code
   */
  public function getColumnFilterTag($column, $params = array())
  {
    $user_params = $this->getParameterValue('list.fields.'.$column->getName().'.params');
    $user_params = is_array($user_params) ? $user_params : sfToolkit::stringToArray($user_params);
    $params      = $user_params ? array_merge($params, $user_params) : $params;

    if ($column->isComponent())
    {
      return "get_component('".$this->getModuleName()."', '".$column->getName()."', array('type' => 'list'))";
    }
    else if ($column->isPartial())

the $type of the get_component function is it right to filter

      return "get_component('".$this->getModuleName()."', '".$column->getName()."', array('type' => 'filter'))";

Change History

06/23/08 06:35:46 changed by dwhittle

  • qualification changed from Unreviewed to Ready for core team.
  • milestone set to 1.1.0 FINAL.

06/25/08 14:06:30 changed by fabien

  • version changed from 1.1.0 DEV to 1.0.16.
  • milestone changed from 1.1.0 FINAL to 1.0.17.

06/25/08 14:07:06 changed by fabien

  • status changed from new to closed.
  • resolution set to fixed.

(In [9861]) fixed getColumnFilterTag() component type (closes #2861)

06/25/08 14:07:13 changed by fabien

(In [9862]) fixed getColumnFilterTag() component type (closes #2861)