Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-30828

Feedback module - error when sorting by date

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.1, 2.1.4, 2.2.1, 2.3
    • Fix Version/s: 2.1.5, 2.2.2
    • Component/s: Feedback
    • Labels:
    • Database:
      MySQL
    • Testing Instructions:
      Hide

      enable the feedback module in "manage activities" in your site settings

      create a feedback activity. In activity settings set "record user names" to NOT be anonymous

      Add at least one question then log in as a student and provide feedback.

      Log back in as a teacher, also provide feedback so you have 2 responses.

      Click Show Responses.

      Click the date column header and check that it sorts appropriately.

      Click on the name column headers and check that they sort appropriately.

      Show
      enable the feedback module in "manage activities" in your site settings create a feedback activity. In activity settings set "record user names" to NOT be anonymous Add at least one question then log in as a student and provide feedback. Log back in as a teacher, also provide feedback so you have 2 responses. Click Show Responses. Click the date column header and check that it sorts appropriately. Click on the name column headers and check that they sort appropriately.
    • Affected Branches:
      MOODLE_20_STABLE, MOODLE_21_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE
    • Fixed Branches:
      MOODLE_21_STABLE, MOODLE_22_STABLE
    • Pull Master Branch:
      MDL-30828_feedback_sort

      Description

      Module feedback - when sorting by date shows the error reading from the database.

        Gliffy Diagrams

          Attachments

          1. feedback_show.jpg
            feedback_show.jpg
            18 kB
          2. patch.diff
            0.6 kB
          3. patch.diff
            0.6 kB

            Activity

            Hide
            salvetore Michael de Raadt added a comment -

            Thanks for reporting this.

            It would be good if you could add more information, such as screenshots, replication instructions and the output of the error.

            Show
            salvetore Michael de Raadt added a comment - Thanks for reporting this. It would be good if you could add more information, such as screenshots, replication instructions and the output of the error.
            Hide
            cristiano.boell Cristiano Boell added a comment -

            when sorting by date

            Show
            cristiano.boell Cristiano Boell added a comment - when sorting by date
            Hide
            cristiano.boell Cristiano Boell added a comment -

            presents the field duplicate timemodified, adding the field in the session select the function works normally

            Show
            cristiano.boell Cristiano Boell added a comment - presents the field duplicate timemodified, adding the field in the session select the function works normally
            Hide
            andyjdavis Andrew Davis added a comment -

            It took quite a lot of experimenting but I was eventually able to find the problem. I'm not sure I've ever used the feedback module before. Internally its quite different from the rest of Moodle. I've added testing instructions to record the process to get to the bug.

            I haven't yet encountered the but in this report but I also haven't managed to get sorting to work at all yet. The sorting seems entirely broken and always sorts by participant lastname no matter what you click on.

            Show
            andyjdavis Andrew Davis added a comment - It took quite a lot of experimenting but I was eventually able to find the problem. I'm not sure I've ever used the feedback module before. Internally its quite different from the rest of Moodle. I've added testing instructions to record the process to get to the bug. I haven't yet encountered the but in this report but I also haven't managed to get sorting to work at all yet. The sorting seems entirely broken and always sorts by participant lastname no matter what you click on.
            Hide
            andyjdavis Andrew Davis added a comment -

            I'm putting up a potential fix for peer review. Its a modified version of the original patch. Sorting was broken because the param type PARAM_ALPHANUMEXT, used by optional_param(), removes full stops. This caused c.timemodified to be received as ctimemodified. That column doesnt exist so the sort always defaulted to last name.

            Show
            andyjdavis Andrew Davis added a comment - I'm putting up a potential fix for peer review. Its a modified version of the original patch. Sorting was broken because the param type PARAM_ALPHANUMEXT, used by optional_param(), removes full stops. This caused c.timemodified to be received as ctimemodified. That column doesnt exist so the sort always defaulted to last name.
            Hide
            abgreeve Adrian Greeve added a comment -

            I also couldn't replicate the error message.
            I think that the code is a nice fix for sorting via the date heading.
            Thanks Andrew and Cristiano.

            Show
            abgreeve Adrian Greeve added a comment - I also couldn't replicate the error message. I think that the code is a nice fix for sorting via the date heading. Thanks Andrew and Cristiano.
            Hide
            stronk7 Eloy Lafuente (stronk7) added a comment -

            The main moodle.git repository has just been updated with latest weekly modifications. You may wish to rebase your PULL branches to simplify history and avoid any possible merge conflicts. This would also make integrator's life easier next week.

            TIA and ciao

            Show
            stronk7 Eloy Lafuente (stronk7) added a comment - The main moodle.git repository has just been updated with latest weekly modifications. You may wish to rebase your PULL branches to simplify history and avoid any possible merge conflicts. This would also make integrator's life easier next week. TIA and ciao
            Hide
            nebgor Aparup Banerjee added a comment -

            cool, thats integrated into 21(noted new lines), 22 and master now for testing on all branches.

            Show
            nebgor Aparup Banerjee added a comment - cool, thats integrated into 21(noted new lines), 22 and master now for testing on all branches.
            Hide
            rajeshtaneja Rajesh Taneja added a comment -

            Thanks Andrew
            Works Great ...

            Show
            rajeshtaneja Rajesh Taneja added a comment - Thanks Andrew Works Great ...
            Hide
            stronk7 Eloy Lafuente (stronk7) added a comment -

            Many thanks for your collaboration, this code has been integrated upstream and it's available in all the repositories.

            Closing, ciao

            Show
            stronk7 Eloy Lafuente (stronk7) added a comment - Many thanks for your collaboration, this code has been integrated upstream and it's available in all the repositories. Closing, ciao

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  12/Mar/12