From 19ce81617767ca7da86693411badefca65a19679 Mon Sep 17 00:00:00 2001 From: Jos Groot Lipman Date: Fri, 29 May 2015 09:38:28 +0000 Subject: [PATCH] =?UTF-8?q?IVET#32909=20Voorkom=20AiAi=20als=20gebruiker?= =?UTF-8?q?=20maar=20=C3=A9=C3=A9n=20rapport=20mag=20zien?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit svn path=/Website/branches/v2015.1/; revision=25339 --- APPL/API2/model_reportsx.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/APPL/API2/model_reportsx.inc b/APPL/API2/model_reportsx.inc index 795b122f83..839e3bef2e 100644 --- a/APPL/API2/model_reportsx.inc +++ b/APPL/API2/model_reportsx.inc @@ -128,7 +128,7 @@ function model_reportsx(usrrap_key, params) this.includes["columns"].model._view2columns(params.filter.id); var json = api2.sql2json (params, sql, this ); } - if (json.length == 1 && !this.is_safe_view(json[0].viewname)) + if (json.length == 1 && "viewname" in json[0] && !this.is_safe_view(json[0].viewname)) this.fields["viewname"].readonly = true; return json;