~fabiocbalbuquerque/sahana-agasti/web-services

« back to all changes in this revision

Viewing changes to apps/frontend/lib/form/doctrine/agFacilityForm.class.php

  • Committer: Nils Stolpe
  • Date: 2011-07-27 18:43:32 UTC
  • mto: (1.26.1 push-trunk)
  • mto: This revision was merged to the branch mainline in revision 25.
  • Revision ID: nils.stolpe@mail.cuny.edu-20110727184332-mnax2iej0hjccoea
Address forms for staff and facility now show Latitude and Longitude as labels rather than Lat and Long.
Address form labels have been enlarged from 60px to 70px to accomodate the labels above.
Fixed bugs on agPErsonForm and agFacilityForm that were causing fatal errors on save due to a NULL being passed to the address setter function.wq

Show diffs side-by-side

added added

removed removed

Lines of Context:
777
777
      $i++;
778
778
    }
779
779
    // And set all the addresses.
780
 
    $entAddHelper->setEntityAddress($addresses, $geoSourceId, FALSE);
 
780
    if(isset($addresses)) {
 
781
      $entAddHelper->setEntityAddress($addresses, $geoSourceId, FALSE);
 
782
    }
781
783
    // Finally, unset any geo data that has been emptied.
782
784
    if(isset($emptyGeo)) {
783
785
      foreach($emptyGeo as $id => $type) {