Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
semteacher committed Jul 15, 2024
1 parent 527e291 commit b3184ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 1 addition & 4 deletions classes/form/option_form_bulk.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,13 @@ public function definition() {
'option\fields'
);
$options = [];
// Array of things to include.

// Array of things to include.
$includedclasses = [
'addtocalendar',
'availability',
'canceluntil',
'courseid',
// 'credits',
'disablebookingusers',
'disablecancel',
'easy_availability_previouslybooked',
Expand Down Expand Up @@ -121,7 +120,6 @@ public function definition() {

if (isset($submitdata['checkedids'])) {
// On second load of mform, these keys will be lost.
// $checkedids = explode(",", $submitdata['checkedids']);
$mform->addElement('hidden', 'checkedids', $submitdata['checkedids']);

}
Expand Down Expand Up @@ -214,7 +212,6 @@ public function process_dynamic_submission() {
$settings = singleton_service::get_instance_of_booking_option_settings($bookingoptionid);
$data->cmid = $settings->cmid;
$data->id = $bookingoptionid;
// $data->importing = true;
$copy = clone($data);
fields_info::set_data($copy);
foreach ($data as $key => $value) {
Expand Down
2 changes: 2 additions & 0 deletions classes/shortcodes.php
Original file line number Diff line number Diff line change
Expand Up @@ -557,11 +557,13 @@ public static function bulkoperations($shortcode, $args, $content, $env, $next):
$table->showfilterontop = true;
$table->filteronloadinactive = true;

// phpcs:disable
// TODO: search und sort -> affecting url for the moment.
// $table->define_fulltextsearchcolumns(['id', 'text']);
// $table->define_sortablecolumns(['id', 'text']);
// $table->sort_default_column = 'id';
// $table->sort_default_order = SORT_DESC;
// phpcs:enable

list($fields, $from, $where, $params, $filter) =
booking::get_options_filter_sql(0, 0, '', null, null, [], []);
Expand Down

0 comments on commit b3184ce

Please sign in to comment.