fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [12745] class.uiresponsible


From: Saul
Subject: [Fmsystem-commits] [12745] class.uiresponsible
Date: Thu, 12 Feb 2015 23:12:52 +0000

Revision: 12745
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=12745
Author:   psaul
Date:     2015-02-12 23:12:52 +0000 (Thu, 12 Feb 2015)
Log Message:
-----------
class.uiresponsible

Modified Paths:
--------------
    branches/dev-syncromind/property/inc/class.uiresponsible.inc.php

Modified: branches/dev-syncromind/property/inc/class.uiresponsible.inc.php
===================================================================
--- branches/dev-syncromind/property/inc/class.uiresponsible.inc.php    
2015-02-12 23:11:55 UTC (rev 12744)
+++ branches/dev-syncromind/property/inc/class.uiresponsible.inc.php    
2015-02-12 23:12:52 UTC (rev 12745)
@@ -804,6 +804,8 @@
                        $location       = phpgw::get_var('location', 'string');
                        $values         = phpgw::get_var('values');
 
+           if ((isset($values['save']) && $values['save']) || 
(isset($values['apply']) && $values['apply']))
+           {
                                if($GLOBALS['phpgw']->session->is_repost())
                                {
        //                              
$receipt['error'][]=array('msg'=>lang('Hmm... looks like a repost!'));
@@ -862,6 +864,11 @@
                 {
                     $this->edit();
                 }
+           }
+           else
+           {
+               $this->edit($values);
+           }
         }
         
                function edit()
@@ -875,45 +882,6 @@
                        $location       = phpgw::get_var('location', 'string');
                        $values         = phpgw::get_var('values');
 
-                       /*if ((isset($values['save']) && $values['save']) || 
(isset($values['apply']) && $values['apply']))
-                       {
-                               if($GLOBALS['phpgw']->session->is_repost())
-                               {
-       //                              
$receipt['error'][]=array('msg'=>lang('Hmm... looks like a repost!'));
-                               }
-
-                               if(!isset($values['location']) || 
!$values['location'])
-                               {
-//                                     
$receipt['error'][]=array('msg'=>lang('Please select a location!'));
-                               }
-
-                               if(!isset($values['name']) || !$values['name'])
-                               {
-                                       
$receipt['error'][]=array('msg'=>lang('Please enter a name!'));
-                               }
-
-                               if($id)
-                               {
-                                       $values['id']=$id;
-                               }
-                               else
-                               {
-                                       $id = $values['id'];
-                               }
-
-                               if(!$receipt['error'])
-                               {
-                                       $receipt = 
$this->bo->save_type($values);
-                                       $id = $receipt['id'];
-
-                                       if (isset($values['save']) && 
$values['save'])
-                                       {
-                                               
$GLOBALS['phpgw']->session->appsession('session_data','responsible_receipt',$receipt);
-                                               
$GLOBALS['phpgw']->redirect_link('/index.php',array('menuaction'=> 
'property.uiresponsible.index', 'appname' => $this->appname));
-                                       }
-                               }
-                       }*/
-
                        if (isset($values['cancel']) && $values['cancel'])
                        {
                                
$GLOBALS['phpgw']->redirect_link('/index.php',array('menuaction'=> 
'property.uiresponsible.index', 'appname' => $this->appname));




reply via email to

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