[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [16919] activitycalendar: fixed bug related to valida
From: |
sigurdne |
Subject: |
[Fmsystem-commits] [16919] activitycalendar: fixed bug related to validation |
Date: |
Thu, 6 Jul 2017 09:41:47 -0400 (EDT) |
Revision: 16919
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=16919
Author: sigurdne
Date: 2017-07-06 09:41:47 -0400 (Thu, 06 Jul 2017)
Log Message:
-----------
activitycalendar: fixed bug related to validation
Modified Paths:
--------------
trunk/activitycalendar/inc/class.soactivity.inc.php
trunk/activitycalendarfrontend/inc/class.uiactivity.inc.php
Modified: trunk/activitycalendar/inc/class.soactivity.inc.php
===================================================================
--- trunk/activitycalendar/inc/class.soactivity.inc.php 2017-07-06 12:38:29 UTC
(rev 16918)
+++ trunk/activitycalendar/inc/class.soactivity.inc.php 2017-07-06 13:41:47 UTC
(rev 16919)
@@ -470,13 +470,13 @@
$activity->set_internal_arena($this->unmarshal($this->db->f('internal_arena'),
'string'));
$activity->set_time($this->unmarshal($this->db->f('time'), 'string'));
$activity->set_last_change_date($this->unmarshal($this->db->f('last_change_date'),
'int'));
-
$activity->set_special_adaptation($this->unmarshal($this->db->f('special_adaptation',
'bool')));
+
$activity->set_special_adaptation($this->unmarshal($this->db->f('special_adaptation'),
'bool'));
$activity->set_secret($this->unmarshal($this->db->f('secret'), 'string'));
$activity->set_contact_person_2_address($this->unmarshal($this->db->f('contact_person_2_address'),
'string'));
$activity->set_contact_person_2_zip($this->unmarshal($this->db->f('contact_person_2_zip'),
'string'));
-
$activity->set_frontend($this->unmarshal($this->db->f('frontend', 'bool')));
-
$activity->set_new_org($this->unmarshal($this->db->f('new_org', 'bool')));
-
$activity->set_new_group($this->unmarshal($this->db->f('new_group', 'bool')));
+
$activity->set_frontend($this->unmarshal($this->db->f('frontend'), 'bool'));
+
$activity->set_new_org($this->unmarshal($this->db->f('new_org'), 'bool'));
+
$activity->set_new_group($this->unmarshal($this->db->f('new_group'), 'bool'));
if ($activity->get_group_id() &&
$activity->get_group_id() > 0)
{
@@ -693,7 +693,9 @@
function get_targets()
{
$targets = array();
- $sql = "SELECT * FROM bb_agegroup where active=1 ORDER
BY sort";
+ $sql = "SELECT * FROM bb_agegroup"
+ . " WHERE active=1 AND activity_id = 1"
+ . " ORDER BY sort";
$this->db->query($sql, __LINE__, __FILE__);
while ($this->db->next_record())
{
@@ -1496,12 +1498,12 @@
$activity->set_internal_arena($this->unmarshal($this->db->f('internal_arena'),
'string'));
$activity->set_time($this->unmarshal($this->db->f('time'), 'string'));
$activity->set_last_change_date($this->unmarshal($this->db->f('last_change_date'),
'int'));
-
$activity->set_special_adaptation($this->unmarshal($this->db->f('special_adaptation',
'bool')));
+
$activity->set_special_adaptation($this->unmarshal($this->db->f('special_adaptation'),
'bool'));
$activity->set_secret($this->unmarshal($this->db->f('secret'), 'string'));
$activity->set_contact_person_2_address($this->unmarshal($this->db->f('contact_person_2_address'),
'string'));
$activity->set_contact_person_2_zip($this->unmarshal($this->db->f('contact_person_2_zip'),
'string'));
-
$activity->set_frontend($this->unmarshal($this->db->f('frontend', 'bool')));
-
$activity->set_new_org($this->unmarshal($this->db->f('new_org', 'bool')));
+
$activity->set_frontend($this->unmarshal($this->db->f('frontend'), 'bool'));
+
$activity->set_new_org($this->unmarshal($this->db->f('new_org'), 'bool'));
$activities[] = $activity;
}
Modified: trunk/activitycalendarfrontend/inc/class.uiactivity.inc.php
===================================================================
--- trunk/activitycalendarfrontend/inc/class.uiactivity.inc.php 2017-07-06
12:38:29 UTC (rev 16918)
+++ trunk/activitycalendarfrontend/inc/class.uiactivity.inc.php 2017-07-06
13:41:47 UTC (rev 16919)
@@ -245,7 +245,7 @@
{
$get_org_from_local = false;
$new_org_group = false;
- $new_org = phpgw::get_var('new_organization');
+ $new_org = phpgw::get_var('new_organization',
'bool', 'POST', false);
if ($new_org != null && $new_org == 'yes')
{
$get_org_from_local = true;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [16919] activitycalendar: fixed bug related to validation,
sigurdne <=