2 Online. Join themUsers

Search

This is just another hint for anybody who moves a website to 2.0.7: While random sort order in your old datasources will work for the datasource itself (because internal renaming from “rand” to “random” has been made rather backward compatible), it won’t be recognized in the datasource editor. So if you re-save such a datasource, be sure to select “random” manually. You may as well edit your datasource file. Around line 8 you will find:

public $dsParamORDER = 'rand';

which must be

public $dsParamORDER = 'random';

to be recognized by the datasource editor.

This should be raised as a bug report since this essentially breaks backwards compatibility. The DS editor should recognise both for legacy DSs, and save as the new ‘random’ when re-saved.

Does this commit address it?

No, unfortunately not. I will post this as a new issue.

I posted the bug here.

I think this commit should take care of it.

Login to Comment

Symphony • Open Source XSLT CMS

Server Requirements
  • PHP 5.2 or above
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 4.1 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts