Sort permittedActivityTypes
authoreileen <emcnaughton@wikimedia.org>
Sun, 12 Jul 2020 10:58:48 +0000 (22:58 +1200)
committereileen <emcnaughton@wikimedia.org>
Sun, 12 Jul 2020 10:58:48 +0000 (22:58 +1200)
commitce0e9bdc43b1006d5259a8bad77dd5883e2561ed
treeac1d088a6fbf65312b6fb34eaf4c1981f16197fe
parent2d198bb4d5065581108240bfd7e26b8ddf6807eb
Sort permittedActivityTypes

When determining whether to add a clause filtering activity types the permitted types
are compared to all types. If all are permitted no clause is needed.

However, without this sort it is incorrectly seeing them as not matching and adding extraneous joins
CRM/Activity/BAO/Activity.php