[Kimchi-devel] [PATCH] Grid widget presently interprets displays null values as null strings
Aline Manera
alinefm at linux.vnet.ibm.com
Thu Mar 13 19:09:47 UTC 2014
Reviewed-by: Aline Manera <alinefm at linux.vnet.ibm.com>
On 03/13/2014 03:53 PM, Adam King wrote:
> Update the fillBody function to translate null to '' for display purposes.
>
> Signed-off-by: Adam King <rak at linux.vnet.ibm.com>
> ---
> ui/js/src/kimchi.grid.js | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/ui/js/src/kimchi.grid.js b/ui/js/src/kimchi.grid.js
> index 2e3d0ed..e5892ff 100644
> --- a/ui/js/src/kimchi.grid.js
> +++ b/ui/js/src/kimchi.grid.js
> @@ -167,7 +167,7 @@ kimchi.widget.Grid = function(params) {
> var rowNode = $('<tr></tr>').appendTo(tbody);
> $.each(fields, function(fi, field) {
> var fieldName = field['name'];
> - var value = row[fieldName];
> + var value = (row[fieldName]==null) ? '' : row[fieldName];
> $('<td><div class="cell-text-wrapper"' +
> (field['makeTitle'] === true
> ? ' title="' + value + '"'
More information about the Kimchi-devel
mailing list