signups in order

Viewing 1 reply thread
  • Author
    Posts
    • #7500
      Duane Strong
      Participant

      Hi
      We needed the signups to show in the order people signed up, since priority is given to those who sign up first for our activities. I added the following in data.php function get_signups() to make that work, seems like it would be generally useful.

      public function get_signups($task_id, $date=”)
      {
      $SQL = “SELECT * FROM “.$this->tables[‘signup’][‘name’].” WHERE task_id = %d “;
      if (” != $date) {
      $SQL .= “AND date = %s”;
      }

      // added this…
      $SQL .= ” ORDER by id”;

    • #7504
      Stephen Sherrard
      Keymaster

      Sure, I can add that in the next release. Need to add one other minor tweak for task name output anyway, so I’ll include this minor change as well.

Viewing 1 reply thread
  • The topic ‘signups in order’ is closed to new replies.