Commit 3d091380 authored by Vincent Pelletier's avatar Vincent Pelletier

Handle the case where owner does not have view permission on object. It cannot...

Handle the case where owner does not have view permission on object. It cannot be handled with a NULL nicely, because NOT(NULL) AND [...] is always false in SQL, and it is required to negate conditions automaticaly for worklists.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18327 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent aa035c98
...@@ -68,7 +68,7 @@ DROP TABLE IF EXISTS worklist_cache\n ...@@ -68,7 +68,7 @@ DROP TABLE IF EXISTS worklist_cache\n
<dtml-var sql_delimiter>\n <dtml-var sql_delimiter>\n
CREATE TABLE `worklist_cache` (\n CREATE TABLE `worklist_cache` (\n
`count` INT UNSIGNED NOT NULL,\n `count` INT UNSIGNED NOT NULL,\n
`owner` VARCHAR(32) NOT NULL,\n `owner` VARCHAR(32) NOT NULL DEFAULT \'\',\n
`security_uid` INT UNSIGNED NOT NULL,\n `security_uid` INT UNSIGNED NOT NULL,\n
`portal_type` VARCHAR(255) NOT NULL,\n `portal_type` VARCHAR(255) NOT NULL,\n
`validation_state` VARCHAR(255) NULL,\n `validation_state` VARCHAR(255) NULL,\n
...@@ -121,7 +121,7 @@ DROP TABLE IF EXISTS worklist_cache\n ...@@ -121,7 +121,7 @@ DROP TABLE IF EXISTS worklist_cache\n
<dtml-var sql_delimiter>\n <dtml-var sql_delimiter>\n
CREATE TABLE `worklist_cache` (\n CREATE TABLE `worklist_cache` (\n
`count` INT UNSIGNED NOT NULL,\n `count` INT UNSIGNED NOT NULL,\n
`owner` VARCHAR(32) NOT NULL,\n `owner` VARCHAR(32) NOT NULL DEFAULT \'\',\n
`security_uid` INT UNSIGNED NOT NULL,\n `security_uid` INT UNSIGNED NOT NULL,\n
`portal_type` VARCHAR(255) NOT NULL,\n `portal_type` VARCHAR(255) NOT NULL,\n
`validation_state` VARCHAR(255) NULL,\n `validation_state` VARCHAR(255) NULL,\n
......
...@@ -114,7 +114,7 @@ VALUES\n ...@@ -114,7 +114,7 @@ VALUES\n
<dtml-in prefix="loop" expr="_.range(_.len(count))">\n <dtml-in prefix="loop" expr="_.range(_.len(count))">\n
(\n (\n
<dtml-sqlvar expr="count[loop_item]" type="int">,\n <dtml-sqlvar expr="count[loop_item]" type="int">,\n
<dtml-sqlvar expr="owner[loop_item]" type="string">,\n <dtml-sqlvar expr="owner[loop_item]" type="string" optional>,\n
<dtml-sqlvar expr="security_uid[loop_item]" type="int">,\n <dtml-sqlvar expr="security_uid[loop_item]" type="int">,\n
<dtml-sqlvar expr="portal_type[loop_item]" type="string">,\n <dtml-sqlvar expr="portal_type[loop_item]" type="string">,\n
<dtml-sqlvar expr="validation_state[loop_item]" type="string" optional>,\n <dtml-sqlvar expr="validation_state[loop_item]" type="string" optional>,\n
...@@ -168,7 +168,7 @@ VALUES\n ...@@ -168,7 +168,7 @@ VALUES\n
<dtml-in prefix="loop" expr="_.range(_.len(count))">\n <dtml-in prefix="loop" expr="_.range(_.len(count))">\n
(\n (\n
<dtml-sqlvar expr="count[loop_item]" type="int">,\n <dtml-sqlvar expr="count[loop_item]" type="int">,\n
<dtml-sqlvar expr="owner[loop_item]" type="string">,\n <dtml-sqlvar expr="owner[loop_item]" type="string" optional>,\n
<dtml-sqlvar expr="security_uid[loop_item]" type="int">,\n <dtml-sqlvar expr="security_uid[loop_item]" type="int">,\n
<dtml-sqlvar expr="portal_type[loop_item]" type="string">,\n <dtml-sqlvar expr="portal_type[loop_item]" type="string">,\n
<dtml-sqlvar expr="validation_state[loop_item]" type="string" optional>,\n <dtml-sqlvar expr="validation_state[loop_item]" type="string" optional>,\n
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment