ID reset has to go after parent call, or things break

This commit is contained in:
nathangray 2018-11-13 15:06:46 -07:00
parent 2bf7e14477
commit 5ca429b972

View File

@ -109,11 +109,11 @@ abstract class Entry extends Transformer
$this->regex($attrs, $new_value);
$this->id = self::ID_PREFIX . $this->id . "[{$attrs['field']}]";
parent::beforeSendToClient($cname, $expand);
// Change this after parent::beforeSendToClient or it adds another layer
$this->id = self::ID_PREFIX . $this->id . "[{$attrs['field']}]";
}
/**