Skip to content

Commit a451fcf

Browse files
committedMar 25, 2025·
Career: #fix name to title issue - refs BT#22518
1 parent b7eeba3 commit a451fcf

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed
 

‎public/main/admin/career_dashboard.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
$career_select_list = [];
5151
$career_select_list[0] = ' -- '.get_lang('Select').' --';
5252
foreach ($careers as $item) {
53-
$career_select_list[$item['id']] = $item['name'];
53+
$career_select_list[$item['id']] = $item['title'];
5454
}
5555

5656
$form->addSelect(

‎public/main/inc/lib/career.lib.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class Career extends Model
1111
public $table;
1212
public $columns = [
1313
'id',
14-
'name',
14+
'title',
1515
'description',
1616
'status',
1717
'created_at',
@@ -45,7 +45,7 @@ public function get_all(array $options = []): array
4545
return Database::select(
4646
'*',
4747
$this->table,
48-
['where' => $options, 'order' => 'name ASC']
48+
['where' => $options, 'order' => 'title ASC']
4949
);
5050
}
5151

@@ -182,7 +182,7 @@ public function copy($id, $copy_promotions = false)
182182
case 'id':
183183
case 'updated_at':
184184
break;
185-
case 'name':
185+
case 'title':
186186
$val .= ' '.get_lang('Copy');
187187
$new[$key] = $val;
188188
break;

0 commit comments

Comments
 (0)
Please sign in to comment.