RSS Feed/News Unstable sort for extension_hint.php

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
24,813
Points
823

Reputation:

When extension_hint.php is exported, the sorting can be unstable from install-to-install.

This is because the query lacks needs a sort clause on the more clauses. Ideally this should sort by from_class and then to_class
PHP:

Code:
	public function getExtensionCacheFileValue($addOnId)
	{
		$finder = \XF::finder(ClassExtensionFinder::class)
			->where('addon_id', $addOnId)
			->order('to_class');
		$extensions = $finder->fetch();

Continue reading...
 
Status
Not open for further replies.
Top