fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [13985]


From: Nelson Guerra
Subject: [Fmsystem-commits] [13985]
Date: Tue, 22 Sep 2015 00:25:01 +0000

Revision: 13985
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=13985
Author:   nelson224
Date:     2015-09-22 00:25:01 +0000 (Tue, 22 Sep 2015)
Log Message:
-----------


Modified Paths:
--------------
    branches/dev-syncromind/rental/inc/class.uiprice_item.inc.php

Modified: branches/dev-syncromind/rental/inc/class.uiprice_item.inc.php
===================================================================
--- branches/dev-syncromind/rental/inc/class.uiprice_item.inc.php       
2015-09-22 00:13:47 UTC (rev 13984)
+++ branches/dev-syncromind/rental/inc/class.uiprice_item.inc.php       
2015-09-22 00:25:01 UTC (rev 13985)
@@ -393,8 +393,16 @@
 
                $price_item = 
rental_socontract_price_item::get_instance()->get_single($id);
                $price_item->set_field($field, $value); 
-               
rental_socontract_price_item::get_instance()->store($price_item);
-
+               $result = 
rental_socontract_price_item::get_instance()->store($price_item);
+               
+               $message = array();
+               if ($result) {
+                       $message['message'][] = array('msg'=>lang('date has 
been saved'));
+               } else {
+                       $message['error'][] = array('msg'=>lang('date has not 
been saved'));
+               }
+               
+               return $message;
        }
 
        /**
@@ -469,9 +477,8 @@
                        }
                }
 
-               $editable = phpgw::get_var('editable') == 'true' ? true : false;
+               /*$editable = phpgw::get_var('editable') == 'true' ? true : 
false;
 
-               //Add action column to each row in result table
                array_walk(
                        $rows, 
                        array($this, 'add_actions'), 
@@ -480,7 +487,7 @@
                                $type,
                                $editable
                        )
-               );
+               );*/
                
                $result_data    =   array('results' =>  $rows);
                $result_data['total_records']   = $object_count;




reply via email to

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