Slight refactoring of caption_record, databox_field and record_adapter

This commit is contained in:
Benoît Burnichon
2016-03-30 11:49:50 +02:00
parent c89bf664b5
commit 35a4111cf3
3 changed files with 58 additions and 45 deletions

View File

@@ -754,7 +754,7 @@ class record_adapter implements RecordInterface, cache_cacheableInterface
*/
public function get_caption()
{
return new caption_record($this->app, $this, $this->getDatabox());
return new caption_record($this->app, $this);
}
public function getCaption(array $fields = null)