Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-forum
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project-open
intranet-forum
Commits
bed19d1d
Commit
bed19d1d
authored
Aug 06, 2008
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- fixed issue with ambiguous due_date
parent
fcd863a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
11 deletions
+26
-11
intranet-forum-procs-postgresql.xql
tcl/intranet-forum-procs-postgresql.xql
+26
-11
No files found.
tcl/intranet-forum-procs-postgresql.xql
View file @
bed19d1d
...
@@ -17,12 +17,27 @@
...
@@ -17,12 +17,27 @@
<fullquery
name=
"im_forum_component.forum_query"
>
<fullquery
name=
"im_forum_component.forum_query"
>
<querytext>
<querytext>
select
select
t.*,
t.topic_id,
t.topic_name,
t.topic_path,
t.object_id,
t.parent_id,
t.tree_sortkey,
t.max_child_sortkey,
t.topic_type_id,
t.topic_status_id,
t.owner_id,
t.scope,
t.subject,
t.message,
t.priority,
t.asignee_id,
to_char(t.posting_date, :date_format) as posting_date,
to_char(t.posting_date, :date_format) as posting_date,
to_char(t.due_date, :date_format) as due_date,
to_char(t.due_date, :date_format) as due_date,
CASE WHEN due_date
< now
()
and
t.topic_type_id
in
(1102,
1104)
CASE WHEN
t.
due_date
< now
()
and
t.topic_type_id
in
(1102,
1104)
THEN
1
THEN
1
ELSE
0
ELSE
0
END
as
overdue,
END
as
overdue,
t.asignee_id,
t.asignee_id,
acs_object__name(t.object_id)
as
object_name,
acs_object__name(t.object_id)
as
object_name,
...
@@ -37,19 +52,19 @@ select
...
@@ -37,19 +52,19 @@ select
im_category_from_id(t.topic_status_id)
as
topic_status
im_category_from_id(t.topic_status_id)
as
topic_status
from
from
im_forum_topics
t
im_forum_topics
t
LEFT
JOIN
LEFT
JOIN
(select
*
from
im_forum_topic_user_map
where
user_id=
:user_id)
m
using
(topic_id)
(select
*
from
im_forum_topic_user_map
where
user_id=
:user_id)
m
using
(topic_id)
LEFT
JOIN
LEFT
JOIN
im_forum_folders
f
using
(folder_id)
im_forum_folders
f
using
(folder_id)
LEFT
JOIN
LEFT
JOIN
(
select
1
as
p,
(
select
1
as
p,
object_id_one
as
object_id
object_id_one
as
object_id
from
acs_rels
from
acs_rels
where
object_id_two =
:user_id
where
object_id_two =
:user_id
)
member_objects
using
(object_id)
)
member_objects
using
(object_id)
LEFT
JOIN
LEFT
JOIN
(
select
1
as
p,
(
select
1
as
p,
r.object_id_one
as
object_id
r.object_id_one
as
object_id
from
acs_rels
r,
from
acs_rels
r,
im_biz_object_members
m
im_biz_object_members
m
where
r.object_id_two =
:user_id
where
r.object_id_two =
:user_id
...
@@ -57,7 +72,7 @@ from
...
@@ -57,7 +72,7 @@ from
and
m.object_role_id
in
(1301,
1302,
1303)
and
m.object_role_id
in
(1301,
1302,
1303)
)
admin_objects
using
(object_id),
)
admin_objects
using
(object_id),
acs_objects
o
acs_objects
o
LEFT
JOIN
LEFT
JOIN
(select
*
from
im_biz_object_urls
where
url_type=
'view'
)
u
using
(object_type)
(select
*
from
im_biz_object_urls
where
url_type=
'view'
)
u
using
(object_type)
where
where
(t.parent_id
is
null
or
t.parent_id=
0)
(t.parent_id
is
null
or
t.parent_id=
0)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment