[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [9916] Fixed display of part of town on new organizat
From: |
Erik Holm-Larsen |
Subject: |
[Fmsystem-commits] [9916] Fixed display of part of town on new organizations |
Date: |
Mon, 27 Aug 2012 20:59:38 +0000 |
Revision: 9916
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=9916
Author: erikhl
Date: 2012-08-27 20:59:37 +0000 (Mon, 27 Aug 2012)
Log Message:
-----------
Fixed display of part of town on new organizations
Modified Paths:
--------------
trunk/activitycalendar/inc/model/class.organization.inc.php
Modified: trunk/activitycalendar/inc/model/class.organization.inc.php
===================================================================
--- trunk/activitycalendar/inc/model/class.organization.inc.php 2012-08-27
11:26:41 UTC (rev 9915)
+++ trunk/activitycalendar/inc/model/class.organization.inc.php 2012-08-27
20:59:37 UTC (rev 9916)
@@ -157,11 +157,12 @@
public function serialize()
{
$so_org =
activitycalendar_soorganization::get_instance();
+ $so_act = activitycalendar_soactivity::get_instance();
return array(
'id' => $this->get_id(),
'name' => $this->get_name(),
'organization_number' =>
$this->get_organization_number(),
- 'district' => $this->get_district(),
+ 'district' => ($this->get_change_type() ==
"new" &&
$this->get_district())?$so_act->get_district_from_id($this->get_district()):$this->get_district(),
'description' => $this->get_description(),
'homepage' => $this->get_homepage(),
'email' => $this->get_email(),
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [9916] Fixed display of part of town on new organizations,
Erik Holm-Larsen <=