modxcms/revolution — pull request #351 by RTOSkit (2012-08-14 02:58:31+00:00)
Title: Develop

In the action "add permission to template" the "MODx.combo.Permission" Object, overflows and crashes the application js on the client side,

I have been researching and I found the problem, in the rule are referred SQL DISTINCT only the fields with index equal to "pk" (primary key)

In the case of the table "modx_access_permissions" the index "pk" is assigned just to the field "id"
but the correct distinction of unique field can only be obtained in the field "name"

I posted a "commit" in my git to FIX the problem,
but in my opinion should consider an alternative solution, to expand lar rules xPDO for "sql DISTINCT"

Regards.