fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [14676] property: redirect from save to edit on missi


From: Sigurd Nes
Subject: [Fmsystem-commits] [14676] property: redirect from save to edit on missing POST-data
Date: Mon, 25 Jan 2016 12:58:57 +0000

Revision: 14676
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=14676
Author:   sigurdne
Date:     2016-01-25 12:58:56 +0000 (Mon, 25 Jan 2016)
Log Message:
-----------
property: redirect from save to edit on missing POST-data

Modified Paths:
--------------
    branches/dev-syncromind/property/inc/class.uiadmin_entity.inc.php
    branches/dev-syncromind/property/inc/class.uiadmin_location.inc.php
    branches/dev-syncromind/property/inc/class.uiagreement.inc.php
    branches/dev-syncromind/property/inc/class.uiasync.inc.php
    branches/dev-syncromind/property/inc/class.uibudget.inc.php
    branches/dev-syncromind/property/inc/class.uicondition_survey.inc.php
    branches/dev-syncromind/property/inc/class.uicustom.inc.php
    branches/dev-syncromind/property/inc/class.uidocument2.inc.php
    branches/dev-syncromind/property/inc/class.uientity.inc.php
    branches/dev-syncromind/property/inc/class.uigab.inc.php
    branches/dev-syncromind/property/inc/class.uigeneric.inc.php
    branches/dev-syncromind/property/inc/class.uilocation.inc.php
    branches/dev-syncromind/property/inc/class.uirequest.inc.php
    branches/dev-syncromind/property/inc/class.uiresponsible.inc.php
    branches/dev-syncromind/property/inc/class.uis_agreement.inc.php
    branches/dev-syncromind/property/inc/class.uitemplate.inc.php

Modified: branches/dev-syncromind/property/inc/class.uiadmin_entity.inc.php
===================================================================
--- branches/dev-syncromind/property/inc/class.uiadmin_entity.inc.php   
2016-01-25 12:38:27 UTC (rev 14675)
+++ branches/dev-syncromind/property/inc/class.uiadmin_entity.inc.php   
2016-01-25 12:58:56 UTC (rev 14676)
@@ -632,6 +632,11 @@
 
                public function save()
                {
+                       if(!$_POST)
+                       {
+                               return  $this->edit();
+                       }
+
                        $id = (int)phpgw::get_var('id');
                        $values = phpgw::get_var('values');
                        $config = CreateObject('phpgwapi.config', 
$this->type_app[$this->type]);
@@ -794,6 +799,10 @@
                        {
                                return;
                        }
+                       if(!$_POST)
+                       {
+                               return  $this->edit_category();
+                       }
 
                        $entity_id = phpgw::get_var('entity_id', 'int');
                        $id = phpgw::get_var('id', 'int');

Modified: branches/dev-syncromind/property/inc/class.uiadmin_location.inc.php
===================================================================
--- branches/dev-syncromind/property/inc/class.uiadmin_location.inc.php 
2016-01-25 12:38:27 UTC (rev 14675)
+++ branches/dev-syncromind/property/inc/class.uiadmin_location.inc.php 
2016-01-25 12:58:56 UTC (rev 14676)
@@ -380,6 +380,11 @@
 
                public function save()
                {
+                       if(!$_POST)
+                       {
+                               return  $this->edit();
+                       }
+
                        $id = (int)phpgw::get_var('id');
                        $values = phpgw::get_var('values');
 
@@ -1027,6 +1032,11 @@
 
                public function save_attrib()
                {
+                       if(!$_POST)
+                       {
+                               return  $this->edit_attrib();
+                       }
+
                        $type_id = (int)phpgw::get_var('type_id');
                        $id = (int)phpgw::get_var('id');
                        $values = phpgw::get_var('values');

Modified: branches/dev-syncromind/property/inc/class.uiagreement.inc.php
===================================================================
--- branches/dev-syncromind/property/inc/class.uiagreement.inc.php      
2016-01-25 12:38:27 UTC (rev 14675)
+++ branches/dev-syncromind/property/inc/class.uiagreement.inc.php      
2016-01-25 12:58:56 UTC (rev 14676)
@@ -693,6 +693,11 @@
 
                public function save()
                {
+                       if(!$_POST)
+                       {
+                               return  $this->edit();
+                       }
+
                        $id = phpgw::get_var('id', 'int');
                        $values = phpgw::get_var('values');
                        $values_attribute = phpgw::get_var('values_attribute');

Modified: branches/dev-syncromind/property/inc/class.uiasync.inc.php
===================================================================
--- branches/dev-syncromind/property/inc/class.uiasync.inc.php  2016-01-25 
12:38:27 UTC (rev 14675)
+++ branches/dev-syncromind/property/inc/class.uiasync.inc.php  2016-01-25 
12:58:56 UTC (rev 14676)
@@ -320,6 +320,11 @@
 
                public function save()
                {
+                       if(!$_POST)
+                       {
+                               return  $this->edit();
+                       }
+
                        $id = phpgw::get_var('id', 'int');
                        $values = phpgw::get_var('values');
 

Modified: branches/dev-syncromind/property/inc/class.uibudget.inc.php
===================================================================
--- branches/dev-syncromind/property/inc/class.uibudget.inc.php 2016-01-25 
12:38:27 UTC (rev 14675)
+++ branches/dev-syncromind/property/inc/class.uibudget.inc.php 2016-01-25 
12:58:56 UTC (rev 14676)
@@ -1096,6 +1096,11 @@
 
                public function save()
                {
+                       if(!$_POST)
+                       {
+                               return  $this->edit();
+                       }
+
                        $budget_id = phpgw::get_var('budget_id', 'int');
                        $values = phpgw::get_var('values');
 
@@ -1269,6 +1274,11 @@
 
                public function save_basis()
                {
+                       if(!$_POST)
+                       {
+                               return  $this->edit_basis();
+                       }
+
                        $budget_id = phpgw::get_var('budget_id', 'int');
                        $values = phpgw::get_var('values');
                        $values['ecodimb'] = phpgw::get_var('ecodimb');

Modified: branches/dev-syncromind/property/inc/class.uicondition_survey.inc.php
===================================================================
--- branches/dev-syncromind/property/inc/class.uicondition_survey.inc.php       
2016-01-25 12:38:27 UTC (rev 14675)
+++ branches/dev-syncromind/property/inc/class.uicondition_survey.inc.php       
2016-01-25 12:58:56 UTC (rev 14676)
@@ -562,6 +562,11 @@
                 */
                public function save()
                {
+                       if(!$_POST)
+                       {
+                               return  $this->edit();
+                       }
+
                        $id = (int)phpgw::get_var('id');
 
                        if($id)

Modified: branches/dev-syncromind/property/inc/class.uicustom.inc.php
===================================================================
--- branches/dev-syncromind/property/inc/class.uicustom.inc.php 2016-01-25 
12:38:27 UTC (rev 14675)
+++ branches/dev-syncromind/property/inc/class.uicustom.inc.php 2016-01-25 
12:58:56 UTC (rev 14676)
@@ -266,6 +266,11 @@
 
                public function save()
                {
+                       if(!$_POST)
+                       {
+                               return  $this->edit();
+                       }
+
                        $custom_id = phpgw::get_var('custom_id', 'int');
                        $values = phpgw::get_var('values');
                        $values['sql_text'] = $_POST['values']['sql_text'];

Modified: branches/dev-syncromind/property/inc/class.uidocument2.inc.php
===================================================================
--- branches/dev-syncromind/property/inc/class.uidocument2.inc.php      
2016-01-25 12:38:27 UTC (rev 14675)
+++ branches/dev-syncromind/property/inc/class.uidocument2.inc.php      
2016-01-25 12:58:56 UTC (rev 14676)
@@ -543,6 +543,11 @@
                 */
                public function save()
                {
+                       if(!$_POST)
+                       {
+                               return  $this->edit();
+                       }
+
                        $id = (int)phpgw::get_var('id');
 
                        if($id)

Modified: branches/dev-syncromind/property/inc/class.uientity.inc.php
===================================================================
--- branches/dev-syncromind/property/inc/class.uientity.inc.php 2016-01-25 
12:38:27 UTC (rev 14675)
+++ branches/dev-syncromind/property/inc/class.uientity.inc.php 2016-01-25 
12:58:56 UTC (rev 14676)
@@ -586,6 +586,11 @@
                 */
                public function save()
                {
+                       if(!$_POST)
+                       {
+                               return  $this->edit();
+                       }
+
                        $id = phpgw::get_var('id', 'int');
 
                        if($id)

Modified: branches/dev-syncromind/property/inc/class.uigab.inc.php
===================================================================
--- branches/dev-syncromind/property/inc/class.uigab.inc.php    2016-01-25 
12:38:27 UTC (rev 14675)
+++ branches/dev-syncromind/property/inc/class.uigab.inc.php    2016-01-25 
12:58:56 UTC (rev 14676)
@@ -899,6 +899,10 @@
 
                public function save()
                {
+                       if(!$_POST)
+                       {
+                               return  $this->edit();
+                       }
                        /*
                         * Overrides with incoming data from POST
                         */

Modified: branches/dev-syncromind/property/inc/class.uigeneric.inc.php
===================================================================
--- branches/dev-syncromind/property/inc/class.uigeneric.inc.php        
2016-01-25 12:38:27 UTC (rev 14675)
+++ branches/dev-syncromind/property/inc/class.uigeneric.inc.php        
2016-01-25 12:58:56 UTC (rev 14676)
@@ -908,6 +908,11 @@
                 */
                public function save()
                {
+                       if(!$_POST)
+                       {
+                               return  $this->edit();
+                       }
+
                        $id = 
phpgw::get_var($this->location_info['id']['name']);
                        $values = phpgw::get_var('values');
 

Modified: branches/dev-syncromind/property/inc/class.uilocation.inc.php
===================================================================
--- branches/dev-syncromind/property/inc/class.uilocation.inc.php       
2016-01-25 12:38:27 UTC (rev 14675)
+++ branches/dev-syncromind/property/inc/class.uilocation.inc.php       
2016-01-25 12:58:56 UTC (rev 14676)
@@ -2365,6 +2365,11 @@
 
                public function save()
                {
+                       if(!$_POST)
+                       {
+                               return  $this->edit();
+                       }
+
                        $location_code = phpgw::get_var('location_code');
                        $values_attribute = phpgw::get_var('values_attribute');
 

Modified: branches/dev-syncromind/property/inc/class.uirequest.inc.php
===================================================================
--- branches/dev-syncromind/property/inc/class.uirequest.inc.php        
2016-01-25 12:38:27 UTC (rev 14675)
+++ branches/dev-syncromind/property/inc/class.uirequest.inc.php        
2016-01-25 12:58:56 UTC (rev 14676)
@@ -966,6 +966,11 @@
 
                public function save()
                {
+                       if(!$_POST)
+                       {
+                               return  $this->edit();
+                       }
+
                        $id = phpgw::get_var('id', 'int');
                        $values_attribute = phpgw::get_var('values_attribute');
 

Modified: branches/dev-syncromind/property/inc/class.uiresponsible.inc.php
===================================================================
--- branches/dev-syncromind/property/inc/class.uiresponsible.inc.php    
2016-01-25 12:38:27 UTC (rev 14675)
+++ branches/dev-syncromind/property/inc/class.uiresponsible.inc.php    
2016-01-25 12:58:56 UTC (rev 14676)
@@ -484,6 +484,11 @@
 
                public function save()
                {
+                       if(!$_POST)
+                       {
+                               return  $this->edit();
+                       }
+
                        $id = phpgw::get_var('id', 'int');
                        $location = phpgw::get_var('location', 'string');
                        $values = phpgw::get_var('values');

Modified: branches/dev-syncromind/property/inc/class.uis_agreement.inc.php
===================================================================
--- branches/dev-syncromind/property/inc/class.uis_agreement.inc.php    
2016-01-25 12:38:27 UTC (rev 14675)
+++ branches/dev-syncromind/property/inc/class.uis_agreement.inc.php    
2016-01-25 12:58:56 UTC (rev 14676)
@@ -606,6 +606,10 @@
 
                public function save()
                {
+                       if(!$_POST)
+                       {
+                               return  $this->edit();
+                       }
 
                        $id = phpgw::get_var('id');
                        $values = phpgw::get_var('values');

Modified: branches/dev-syncromind/property/inc/class.uitemplate.inc.php
===================================================================
--- branches/dev-syncromind/property/inc/class.uitemplate.inc.php       
2016-01-25 12:38:27 UTC (rev 14675)
+++ branches/dev-syncromind/property/inc/class.uitemplate.inc.php       
2016-01-25 12:58:56 UTC (rev 14676)
@@ -635,6 +635,10 @@
 
                public function save()
                {
+                       if(!$_POST)
+                       {
+                               return  $this->edit_template();
+                       }
                        $template_id = (int)phpgw::get_var('template_id');
                        $values = phpgw::get_var('values');
                        $receipt = array();




reply via email to

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