PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Sort forms in admin by id (make field configurable or apply_filters please)

  1. For some reason forms_list.php has this hardcoded:

    51         $forms = RGFormsModel::get_forms($active, "title");

    I'm about to implement a process where we're going to have a plenty of duplicated forms for testing and development and will need to keep track of id's and/or create/modification dates. Right now I'd like to have:

    51         $forms = RGFormsModel::get_forms($active, "id DESC");

    for this customer and if you guys could either implement a configuration options or run apply_filters after this line, I'd greatly appreciate it.


    57     public static function get_forms($is_active = null, $sort="title ASC"){

    might also be the spot, but not immediately sure what else this could affect.

    Anyway, not looking forward to patching this after every upgrade.

    Thanks & Cheers!

    Posted 12 years ago on Friday May 25, 2012 | Permalink