Module: nagvis Branch: master Commit: 391d28e1df1d451ebd48058072b53babd536fbb3 URL: http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis/commit/?id=391d28e1df1d451ebd48058072b53babd536fbb3
Author: Roman Kyrylych <[email protected]> Date: Tue Aug 25 11:36:40 2009 +0300 gmap: Fixed validating of newly added links/locations Signed-off-by: Roman Kyrylych <[email protected]> --- share/netmap/LinkService.php | 2 +- share/netmap/LocationService.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/share/netmap/LinkService.php b/share/netmap/LinkService.php index 6a226c6..976f4c6 100644 --- a/share/netmap/LinkService.php +++ b/share/netmap/LinkService.php @@ -100,12 +100,12 @@ class LinkService */ public function add($link) { + $link->id = uniqid('', true); self::validate($link); if (($xml = @simplexml_load_file('links.xml')) === FALSE) throw new Exception('Could not read links.xml'); - $link->id = uniqid('', true); self::updateState($link); $node = $link->toXML($xml); diff --git a/share/netmap/LocationService.php b/share/netmap/LocationService.php index 112d69a..3c78a6a 100644 --- a/share/netmap/LocationService.php +++ b/share/netmap/LocationService.php @@ -100,12 +100,12 @@ class LocationService */ public function add($location) { + $location->id = uniqid('', true); self::validate($location); if (($xml = @simplexml_load_file('locations.xml')) === FALSE) throw new Exception('Could not read locations.xml'); - $location->id = uniqid('', true); self::updateState($location); $node = $location->toXML($xml); ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Nagvis-checkins mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nagvis-checkins
