projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b4fa491
)
DataObjects/Core_notify.php
author
Edward
<edward@roojs.com>
Wed, 11 Feb 2015 06:19:43 +0000
(14:19 +0800)
committer
Edward
<edward@roojs.com>
Wed, 11 Feb 2015 06:19:43 +0000
(14:19 +0800)
DataObjects/Core_notify.php
patch
|
blob
|
history
diff --git
a/DataObjects/Core_notify.php
b/DataObjects/Core_notify.php
index
8e5f607
..
1fd7bbd
100644
(file)
--- a/
DataObjects/Core_notify.php
+++ b/
DataObjects/Core_notify.php
@@
-215,22
+215,21
@@
class Pman_Core_DataObjects_Core_notify extends DB_DataObject
}
}
- $this->selectAdd("
- (SELECT
- display_name
- FROM
- core_enum
- WHERE
- etype = 'Core.NotifyType'
- AND
- name = core_notify.evtype
- AND
- active = 1
- ) AS evtype_align
- ");
-
-
-
+ if(!empty($q['_evtype_align'])){
+ $this->selectAdd("
+ (SELECT
+ display_name
+ FROM
+ core_enum
+ WHERE
+ etype = 'Core.NotifyType'
+ AND
+ name = core_notify.evtype
+ AND
+ active = 1
+ ) AS evtype_align
+ ");
+ }
}