code/controllers/EventAttendeeController.php
protected function populatePreviousData(Form $form) {
		$prepops = EventAttendee::config()->prepopulated_fields;
		if (!$prepops) {
			return;
		}
		$latestattendee = $this->registration->Attendees()
			->sort("LastEdited", "DESC")->first();
		if($latestattendee){
			$form->loadDataFrom($latestattendee, Form::MERGE_DEFAULT, $prepops);	
		}
	}
protected function populatePreviousData(Form $form) {
		$prepops = EventAttendee::config()->prepopulated_fields;
		if (!$prepops) {
			return;
		}
		$latestattendee = $this->registration->Attendees()
			->sort("LastEdited", "DESC")->first();
		if($latestattendee){
			$form->loadDataFrom($latestattendee, Form::MERGE_DEFAULT, $prepops);	
		}
	}
protected function populatePreviousData ( Form $ form ) { $ prepops = EventAttendee :: config ( ) -> prepopulated_fields ; if ( ! $ prepops ) { return ; } $ latestattendee = $ this -> registration -> Attendees ( ) -> sort ( "LastEdited" , "DESC" ) -> first ( ) ; if ( $ latestattendee ) { $ form -> loadDataFrom ( $ latestattendee , Form :: MERGE_DEFAULT , $ prepops ) ; } }
poplate given form with specfific data from last attednee
poplate given form with specfific data from last attednee