title: Cannot read property 'agency' of undefined
body: <p>I have a small problem with my form. I would like to make sure that my agency field is optional, and that it is empty when I do not define a value in it.</p>
  
  <pre><code>$scope.search = function () {
    var myform = angular.copy($scope.form);
    myform.agency = myform.agency.id;
    AppService.searchPatient(myform).then(function(response){
      $scope.result = response;
    });
  };
  </code></pre>
  
  <p>It's been a while since I'm looking to make this field optional</p>