moodle/availability/classes
David Mudrák 93f4f3494a MDL-53481 availability: Fix uniqueness of SQL named param placeholders
Static variables do not behave the way you might expect when accessing
them through the classes inheritance. When accessing a method via self::
or static:: operators, even though the method is inherited, its variable
scope is not. So the method unique_sql_parameter() was using the scope
of the child class and each child class had its own sequence of usp1,
usp2, usp3, ... placeholders. This led to "Incorrect number of query
parameters" error when multiuple condition classes were contributing to
a single SQL query.

All credit should go to Adam Olley who debugged and described the
essence of the problem in the tracker.
2016-11-08 13:36:07 +01:00
..
capability_checker.php
condition.php MDL-45543 availability: Use correct namespace for global classes 2014-05-14 15:31:08 +08:00
frontend.php MDL-45543 availability: Use correct namespace for global classes 2014-05-14 15:31:08 +08:00
info.php MDL-49434 availability: Use renderables for multiple messages 2015-07-15 11:43:01 +01:00
info_module.php MDL-48660 Availability: filter_user_list() should respect 'view hidden' 2015-01-27 10:59:05 +00:00
info_section.php MDL-48660 Availability: filter_user_list() should respect 'view hidden' 2015-01-27 10:59:05 +00:00
multiple_messages.php MDL-49434 availability: more bad whitespace 2015-07-22 23:58:12 +01:00
result.php
tree.php MDL-51652 Availability: OR conditions fail when filtering user lists 2015-10-12 10:23:54 +01:00
tree_node.php MDL-53481 availability: Fix uniqueness of SQL named param placeholders 2016-11-08 13:36:07 +01:00