fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [15341] redirect to edit after save


From: sigurdne
Subject: [Fmsystem-commits] [15341] redirect to edit after save
Date: Mon, 27 Jun 2016 18:50:05 +0000 (UTC)

Revision: 15341
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=15341
Author:   sigurdne
Date:     2016-06-27 18:50:05 +0000 (Mon, 27 Jun 2016)
Log Message:
-----------
redirect to edit after save

Modified Paths:
--------------
    trunk/property/inc/class.uientity.inc.php

Modified: trunk/property/inc/class.uientity.inc.php
===================================================================
--- trunk/property/inc/class.uientity.inc.php   2016-06-26 17:47:01 UTC (rev 
15340)
+++ trunk/property/inc/class.uientity.inc.php   2016-06-27 18:50:05 UTC (rev 
15341)
@@ -699,10 +699,11 @@
                                //phpgwapi_cache::message_set($receipt, 
'message');
                                if ($values['apply'])
                                {
-                                       if ($id)
+                                       if ($id || (isset($receipt['id']) && 
$receipt['id']))
                                        {
+                                               $_id = isset($receipt['id']) && 
$receipt['id'] ? $receipt['id'] : $id;
                                                
self::message_set($this->receipt);
-                                               
self::redirect(array('menuaction' => 'property.uientity.edit', 'id' => $id,
+                                               
self::redirect(array('menuaction' => 'property.uientity.edit', 'id' => $_id,
                                                        'entity_id' => 
$this->entity_id, 'cat_id' => $this->cat_id, 'type' => $this->type));
                                        }
 




reply via email to

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