@@ 40-47 (lines=8) @@ | ||
37 | } |
|
38 | ||
39 | $search = AutoCompleteOption::get()->filter('Name', 'Search')->first(); |
|
40 | if (!$search) { |
|
41 | $search = new AutoCompleteOption(); |
|
42 | $search->Name = 'Search'; |
|
43 | $search->Description = 'Find records similar to the selected item'; |
|
44 | $search->Slug = 'SEARCH'; |
|
45 | $search->Locale = i18n::default_locale(); |
|
46 | $search->write(); |
|
47 | } |
|
48 | ||
49 | $goto = AutoCompleteOption::get()->filter('Name', 'GoToRecord')->first(); |
|
50 | if (!$goto) { |
|
@@ 50-57 (lines=8) @@ | ||
47 | } |
|
48 | ||
49 | $goto = AutoCompleteOption::get()->filter('Name', 'GoToRecord')->first(); |
|
50 | if (!$goto) { |
|
51 | $goto = new AutoCompleteOption(); |
|
52 | $goto->Name = 'GoToRecord'; |
|
53 | $goto->Description = 'Go to the page of the selected item, found by the Link() method'; |
|
54 | $goto->Locale = i18n::default_locale(); |
|
55 | $goto->Slug = 'GOTO'; |
|
56 | $goto->write(); |
|
57 | } |
|
58 | } |
|
59 | } |
|
60 |