phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] property/inc class.sorequest.inc.php


From: Sigurd Nes
Subject: [Phpgroupware-cvs] property/inc class.sorequest.inc.php
Date: Mon, 10 Sep 2007 14:49:42 +0000

CVSROOT:        /sources/phpgroupware
Module name:    property
Changes by:     Sigurd Nes <sigurdne>   07/09/10 14:49:42

Modified files:
        inc            : class.sorequest.inc.php 

Log message:
        update

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/property/inc/class.sorequest.inc.php?cvsroot=phpgroupware&r1=1.21&r2=1.22

Patches:
Index: class.sorequest.inc.php
===================================================================
RCS file: /sources/phpgroupware/property/inc/class.sorequest.inc.php,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -b -r1.21 -r1.22
--- class.sorequest.inc.php     26 Jan 2007 14:53:47 -0000      1.21
+++ class.sorequest.inc.php     10 Sep 2007 14:49:42 -0000      1.22
@@ -24,7 +24,7 @@
        * @internal Development of this application was funded by 
http://www.bergen.kommune.no/bbb_/ekstern/
        * @package property
        * @subpackage project
-       * @version $Id: class.sorequest.inc.php,v 1.21 2007/01/26 14:53:47 
sigurdne Exp $
+       * @version $Id: class.sorequest.inc.php,v 1.22 2007/09/10 14:49:42 
sigurdne Exp $
        */
 
        /**
@@ -115,6 +115,8 @@
                                        $score = $this->db->f('score');
                                        $this->db->query("UPDATE fm_request SET 
score = $score WHERE id = $id",__LINE__,__FILE__);
                                }
+                               
+                               $this->db->query("UPDATE fm_request SET score = 
score +10000 WHERE id = $id AND authorities_demands = 1",__LINE__,__FILE__);
                        }
                }
 
@@ -581,7 +583,6 @@
                                $vals   = "," . implode(",",$vals);
                        }
 
-//_debug_array($vals);
                        if($request['street_name'])
                        {
                                $address[]= $request['street_name'];
@@ -609,7 +610,8 @@
                                'descr'                 => $request['descr'],
                                'budget'                => 
(int)$request['budget'],
                                'location_code'         => 
$request['location_code'],
-                               'address'               => $address
+                               'address'               => $address,
+                               'authorities_demands' => 
$request['authorities_demands']
                                );
 
                        $value_set      = 
$this->bocommon->validate_db_update($value_set);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]