We are running SS3 with Translatable.
If a search term is entered the following page comes up:
http://localhost.devsite/home/SearchForm?Search=book&action_results=Go
With the following error:
[Notice] Undefined property: Page::$Locale
GET /home/SearchForm?Search=book&action_results=Go
Line 542 in C:\source\devsite\translatable\code\model\Translatable.php
The Source shown is:
533 * It falls back to "Locale='' OR Lang IS NULL" and assumes that
534 * this implies querying for the default language.
535 *
536 * Use {@link disable_locale_filter()} to temporarily disable this "auto-filtering".
537 */
538 function augmentSQL(SQLQuery &$query) {
539 // If the record is saved (and not a singleton), and has a locale,
540 // limit the current call to its locale. This fixes a lot of problems
541 // with other extensions like Versioned
542 $locale = ($this->owner->ID && $this->owner->Locale) ? $this->owner->Locale : Translatable::get_current_locale();
543 $baseTable = ClassInfo::baseDataClass($this->owner->class);
544 if(
545 $locale
546 // unless the filter has been temporarily disabled
547 && self::locale_filter_enabled()
548 // DataObject::get_by_id() should work independently of language
Line 536 suggests that this can be disabled, but I don't know how.
Any suggestions would be appreciated.