From e7e45df95d6e1349f47f46dbc426ee2dd220cb46 Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Mon, 15 May 2017 14:13:39 +1200 Subject: [PATCH] Use correct identifier to find input. --- renderer.php | 2 +- tests/behat/attendance_mod.feature | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/renderer.php b/renderer.php index c781234..09d5871 100644 --- a/renderer.php +++ b/renderer.php @@ -1664,7 +1664,7 @@ class mod_attendance_renderer extends plugin_renderer_base { $cells[] = $this->construct_preferences_actions_icons($st, $prefdata); $table->data[$i] = new html_table_row($cells); - $table->data[$i]->style = "statusrow".$i; + $table->data[$i]->id = "statusrow".$i; $i++; } diff --git a/tests/behat/attendance_mod.feature b/tests/behat/attendance_mod.feature index c12a279..fd84f31 100644 --- a/tests/behat/attendance_mod.feature +++ b/tests/behat/attendance_mod.feature @@ -59,7 +59,7 @@ Feature: Teachers and Students can record session attendance And I am on "Course 1" course homepage And I follow "Attendance" And I follow "Status set" - And I set the field with xpath "//tr[@class='statusrow2']//td[@class='c4']/input" to "0" + And I set the field with xpath "//tr[@id='statusrow2']//td[@class='c4']/input" to "0" And I press "Update" And I log out And I log in as "student1" -- 2.11.0