Skip to content

Commit 9c5f418

Browse files
committed
Fix function name
1 parent 74dddf9 commit 9c5f418

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

main/inc/lib/extra_field.lib.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,19 +80,23 @@ public function __construct($type)
8080
$this->table = Database::get_main_table(TABLE_EXTRA_FIELD);
8181
$this->table_field_options = Database::get_main_table(TABLE_EXTRA_FIELD_OPTIONS);
8282
$this->table_field_values = Database::get_main_table(TABLE_EXTRA_FIELD_VALUES);
83+
$this->handler_id = 'item_id';
8384

8485
switch ($this->type) {
8586
case 'calendar_event':
8687
$this->extraFieldType = EntityExtraField::CALENDAR_FIELD_TYPE;
8788
break;
8889
case 'course':
8990
$this->extraFieldType = EntityExtraField::COURSE_FIELD_TYPE;
91+
$this->primaryKey = 'id';
9092
break;
9193
case 'user':
9294
$this->extraFieldType = EntityExtraField::USER_FIELD_TYPE;
95+
$this->primaryKey = 'id';
9396
break;
9497
case 'session':
9598
$this->extraFieldType = EntityExtraField::SESSION_FIELD_TYPE;
99+
$this->primaryKey = 'id';
96100
break;
97101
case 'question':
98102
$this->extraFieldType = EntityExtraField::QUESTION_FIELD_TYPE;
@@ -2126,7 +2130,7 @@ public function getExtraFieldRules($filters, $stringToSearch = 'extra_')
21262130
if (strpos($rule->field, '_second') === false) {
21272131
//No _second
21282132
$original_field = str_replace($stringToSearch, '', $rule->field);
2129-
$field_option = $this->get_handler_field_info_by_variable($original_field);
2133+
$field_option = $this->get_handler_field_info_by_field_variable($original_field);
21302134

21312135
if ($field_option['field_type'] == ExtraField::FIELD_TYPE_DOUBLE_SELECT) {
21322136

0 commit comments

Comments
 (0)