MDL-50919 tags: minor fixes and version bump
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Wed, 2 Sep 2015 11:25:44 +0000 (13:25 +0200)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Wed, 2 Sep 2015 11:25:44 +0000 (13:25 +0200)
This fixes:
- An incorrect exception message.
- tablelib weird behavior creating up to
  pagesize empty rows.

Also forces a version bump so new webservices will become installed.

lib/tests/behat/behat_forms.php
tag/classes/manage_table.php
version.php

index 1d08231..569d632 100644 (file)
@@ -174,7 +174,7 @@ class behat_forms extends behat_base {
      */
     public function i_press_key_in_the_field($key, $field) {
         if (!$this->running_javascript()) {
-            throw new DriverException('Key press step is not available with Javascript enabled');
+            throw new DriverException('Key press step is not available with Javascript disabled');
         }
         $fld = behat_field_manager::get_form_field_from_label($field, $this);
         $modifier = null;
index 84bdaa2..61d3b19 100644 (file)
@@ -119,7 +119,7 @@ class core_tag_manage_table extends table_sql {
                 $total = $grandtotal;
             }
 
-            $this->pagesize($pagesize, $total);
+            $this->pagesize(min($pagesize, $total), $total);
             $this->totalcount = $total;
         }
 
@@ -253,4 +253,4 @@ class core_tag_manage_table extends table_sql {
                 null, array('class' => 'action-icon tagdelete'));
         return $o;
     }
-}
\ No newline at end of file
+}
index 42e683c..7cff797 100644 (file)
@@ -29,7 +29,7 @@
 
 defined('MOODLE_INTERNAL') || die();
 
-$version  = 2015082800.00;              // YYYYMMDD      = weekly release date of this DEV branch.
+$version  = 2015090100.00;              // YYYYMMDD      = weekly release date of this DEV branch.
                                         //         RR    = release increments - 00 in DEV branches.
                                         //           .XX = incremental changes.