fix: Newsletter contains trashed threads
This commit is contained in:
parent
40d1751913
commit
eaf73a976e
3 changed files with 4 additions and 2 deletions
|
|
@ -18,6 +18,7 @@
|
||||||
- fix: Extra <a> tags inserted when viewing only Wiki page
|
- fix: Extra <a> tags inserted when viewing only Wiki page
|
||||||
- fix: incorrect links generated for Event related links
|
- fix: incorrect links generated for Event related links
|
||||||
- fix: Sort Collaboration System threads correctly by rating
|
- fix: Sort Collaboration System threads correctly by rating
|
||||||
|
- fix: Newsletter contains trashed threads (Yung Han Khoe, United Knowledge)
|
||||||
|
|
||||||
7.4.6
|
7.4.6
|
||||||
- Prevent Help index from trying to link to non-existant documentation
|
- Prevent Help index from trying to link to non-existant documentation
|
||||||
|
|
|
||||||
|
|
@ -50,6 +50,7 @@ Contributing Developers..............Lucas Bartholemy
|
||||||
Matt Wilson / Plain Black
|
Matt Wilson / Plain Black
|
||||||
Zhou Xiaopeng / WebGUI Worldwide
|
Zhou Xiaopeng / WebGUI Worldwide
|
||||||
Gerald Young
|
Gerald Young
|
||||||
|
Yung Han Khoe
|
||||||
|
|
||||||
|
|
||||||
The following are people/companies who didn't directly contribute
|
The following are people/companies who didn't directly contribute
|
||||||
|
|
|
||||||
|
|
@ -106,8 +106,8 @@ sub execute {
|
||||||
$eh->info("Searching for threads that match $subscription");
|
$eh->info("Searching for threads that match $subscription");
|
||||||
my $matchingThreads = $db->read("select metaData_values.assetId from metaData_values
|
my $matchingThreads = $db->read("select metaData_values.assetId from metaData_values
|
||||||
left join asset using (assetId) where fieldId=? and value like ? and creationDate > ?
|
left join asset using (assetId) where fieldId=? and value like ? and creationDate > ?
|
||||||
and className like ? and lineage like ?",
|
and className like ? and lineage like ? and state = ?",
|
||||||
[$fieldId, '%'.$value.'%', $lastTimeSent, 'WebGUI::Asset::Post::Thread%', $newsletter->get("lineage").'%']);
|
[$fieldId, '%'.$value.'%', $lastTimeSent, 'WebGUI::Asset::Post::Thread%', $newsletter->get("lineage").'%', 'published']);
|
||||||
while (my ($threadId) = $matchingThreads->array) {
|
while (my ($threadId) = $matchingThreads->array) {
|
||||||
my $thread = WebGUI::Asset->new($self->session, $threadId);
|
my $thread = WebGUI::Asset->new($self->session, $threadId);
|
||||||
if (defined $thread) {
|
if (defined $thread) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue