X

Unstable sort for extension_hint.php

  • Thread starter Thread starter Xon
  • Start date Start date
X

Xon

Guest

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...
 
Similar threads Most view View more
Back
Top Bottom