Re: cvs: pear /Structures_DataGrid/DataGrid/Renderer HTMLTable.php
| From: | Justin Patrin | Date: | Tue, 18 Jan 2005 23:08:32 +0000 |
| Subject: | Re: cvs: pear /Structures_DataGrid/DataGrid/Renderer HTMLTable.php | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-35596@lists.php.net to get a copy of this message | ||
On Tue, 18 Jan 2005 17:42:14 -0000, Andrew Nagy <asnagy@php.net> wrote:
> asnagy Tue Jan 18 12:42:14 2005 EDT
>
> Modified files:
> /pear/Structures_DataGrid/DataGrid/Renderer HTMLTable.php
> Log:
> Fixed bug #3156 which deals with displaying the last page
> Fixed a bug with using the autofill option
>
>
> http://cvs.php.net/diff.php/pear/Structures_DataGrid/DataGrid/Renderer/HTMLTable.php?r1=1.37&r2=1.38&ty=u
> Index: pear/Structures_DataGrid/DataGrid/Renderer/HTMLTable.php
> diff -u pear/Structures_DataGrid/DataGrid/Renderer/HTMLTable.php:1.37
> pear/Structures_DataGrid/DataGrid/Renderer/HTMLTable.php:1.38
> --- pear/Structures_DataGrid/DataGrid/Renderer/HTMLTable.php:1.37 Mon Jan 10 10:15:49
> 2005
> +++ pear/Structures_DataGrid/DataGrid/Renderer/HTMLTable.php Tue Jan 18 12:42:13 2005
> @@ -16,14 +16,14 @@
> // | Author: Andrew Nagy <asnagy@webitecture.org> |
> // +----------------------------------------------------------------------+
> //
> -// $Id: HTMLTable.php,v 1.37 2005/01/10 15:15:49 asnagy Exp $
> +// $Id: HTMLTable.php,v 1.38 2005/01/18 17:42:13 asnagy Exp $
>
> require_once 'HTML/Table.php';
>
> /**
> * Structures_DataGrid_Renderer_HTMLTable Class
> *
> - * @version $Revision: 1.37 $
> + * @version $Revision: 1.38 $
> * @author Andrew S. Nagy <asnagy@webitecture.org>
> * @access public
> * @package Structures_DataGrid
> @@ -415,7 +415,7 @@
> }
>
> // Determine looping values
> - if ($this->_dg->rowLimit == count($this->_dg->recordSet)) {
> + if ($this->_dg->rowLimit >= count($this->_dg->recordSet)) {
> $begin = 0;
> $end = $this->_dg->rowLimit;
> } else {
> @@ -454,6 +454,12 @@
> } else {
> // Use Record Data
> $content = $row[$column->fieldName];
> +
> + if (($content == '') &&
> + ($column->autoFillValue != '')) {
You probably want !== here so that 0 and '0' are valid autofill values.
> + // Use AutoFill
> + $content = $column->autoFillValue;
> + }
> }
>
> // Set Content in HTML_Table
>
--
Justin Patrin