This bugtracker is archived (announcement). New tickets are created on github.com. See all framework issues, cms issues, and search the module listings for more specific bugtrackers.

Ticket #4199: ComplexTableField-Translatable.diff

File ComplexTableField-Translatable.diff, 611 bytes (added by cbryer, 4 years ago)

Patch for ComplexTableField? to set locale of the record

  • C:/

    old new  
    593593        function AddForm($childID = null) { 
    594594                $className = $this->sourceClass(); 
    595595                $childData = new $className(); 
    596                  
     596                if(Singleton($this->sourceClass)->hasExtension('Translatable')){ 
     597                        $childData->Locale = $this->controller->Locale; 
     598                } 
    597599                $fields = $this->getFieldsFor($childData); 
    598600                $validator = $this->getValidatorFor($childData); 
    599601