Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-5368

Dataform rating field breaks on non-numeric scale

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.7.3, 2.8
    • 2.7.2
    • Set: Dataform
    • None
    • 2.7.1+ (Build 20140814)
    • MOODLE_27_STABLE
    • MOODLE_27_STABLE, MOODLE_28_STABLE

      To test:

      Create a dataform with a dataform rating field set to 'point.' Create a generic view - it works.

      Now, change that dataform rating field to use a non-numeric scale. Attempt to view, and the whole view will fail to print.

      In the logs:

      [proxy_fcgi:error] [pid 1343:tid 1397120984163 84] [client 101.164.102.18:53990] AH01071: Got error 'PHP message: PHP Fatal err or: Call to undefined method dataformfield_ratingmdl_renderer::help_icon_scaleegg in /opt/bitnami/apps/moodle/htdocs/mod/dataform/field/ratingmdl/classes/render er.php on line 218\nPHP message: PHP Stack trace:\nPHP message: PHP 1.

      {main}

      egg /opt/bitnami/apps/moodle/htdocs/mod/dataform/view.php:0\nPHP message: PHP 2. mod_dataform_dataform->display() /opt/bitnami/apps/moodle/htdocs/mod/dataform/v iew.php:70\nPHP message: PHP 3. mod_dataform\\pluginbase
      dataformview->displa y() /opt/bitnami/apps/moodle/htdocs/mod/dataform/classes/dataform.php:404\nPHP m essage: PHP 4. mod_dataform\\pluginbase
      dataformview->compile_view_template() /opt/bitnami/apps/moodle/htdocs/mod/dataform/classes/pluginbase/dataformview.ph p:331\nPHP message: PHP 5. mod_dataform\\pluginbase
      dataformviewpatterns->get _replacements() /opt/bitnami/apps/moodle/htdocs/mod/dataform/classes/pluginbase/ dataformview.php:355\nPHP message: PHP 6. mod_dataform\\pluginbase
      dataformvi ewpatterns->get_info_replacement() /opt/bitnami/apps/moodle/htdocs/mod/dataform/ classes/pluginbase/dataformviewpatterns.php:181\nPHP message: PHP 7. mod_dataf orm\\pluginbase
      dataformview->get_entries_display() /opt/bitnami/apps/moodle/ht docs/mod/dataform/classes/pluginbase/dataformviewpatterns.php:265\nPHP message: PHP 8. mod_dataform\\pluginbase
      dataformview->get_entries_definition() /opt/b itnami/apps/moodle/htdocs/mod/dataform/classes/pluginbase/dataformview.php:1230\ nPHP message: PHP 9. mod_dataform\\pluginbase
      dataformview->get_field_definit ions() /opt/bitnami/apps/moodle/htdocs/mod/dataform/classes/pluginbase/dataformv iew.php:1269\nPHP message: PHP 10. mod_dataform\\pluginbase
      dataformfield->get _definitions() /opt/bitnami/apps/moodle/htdocs/mod/dataform/classes/pluginbase/d ataformview.php:1078\nPHP message: PHP 11. mod_dataform\\pluginbase
      dataformfi eldrenderer->get_replacements() /opt/bitnami/apps/moodle/htdocs/mod/dataform/cla sses/pluginbase/dataformfield.php:298\nPHP message: PHP 12. dataformfield_ratin gmdl_renderer->replacements() /opt/bitnami/apps/moodle/htdocs/mod/dataform/class es/pluginbase/dataformfieldrenderer.php:202\nPHP message: PHP 13. dataformfield _ratingmdl_renderer->render_rating() /opt/bitnami/apps/moodle/htdocs/mod/datafor m/field/ratingmdl/classes/renderer.php:130\n', referer: http://elearning.bcanati onal.com/moodle/mod/dataform/view/index.php?d=93

            itamart Itamar Tzadok
            aestivus Louise Bennett
            Itamar Tzadok Itamar Tzadok
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.