diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index 52d6d2522..6e8577e3f 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -4,6 +4,8 @@ - fixed #4173: fieldnames in profilefields can contain spaces - fixed #8811: Bug Tracker: Formatting is bad for the resolution form. - fixed #9235: Image Bug in rich text editor. + - fixed #9219: Thingy After Save Search This Thing not showing all rows (SDH + Consulting Group) 7.6.5 - security: A problem was discovered and fixed in which users could email executable attachments to a collaboration system and then when viewed online, could execute them. diff --git a/lib/WebGUI/Asset/Wobject/Thingy.pm b/lib/WebGUI/Asset/Wobject/Thingy.pm index 2b17c3925..d68660b8e 100644 --- a/lib/WebGUI/Asset/Wobject/Thingy.pm +++ b/lib/WebGUI/Asset/Wobject/Thingy.pm @@ -3090,7 +3090,10 @@ sequenceNumber'); } $query .= join(", ",map {$dbh->quote_identifier('field_'.$_->{fieldId})} @displayInSearchFields); $query .= " from ".$dbh->quote_identifier("Thingy_".$thingId); - $query .= " where ".join(" and ",@constraints) if (scalar(@constraints) > 0); + if($session->form->process('func') eq 'search'){ + # Don't add constraints when the search screen is displayed as an 'after save' option. + $query .= " where ".join(" and ",@constraints) if (scalar(@constraints) > 0); + } if ($orderBy){ $query .= " order by ".$dbh->quote_identifier("field_".$orderBy); }