Clean up a little bit and fix a typo
authorMichael Spahn <m.spahn@metaways.de>
Fri, 24 Aug 2012 07:04:58 +0000 (09:04 +0200)
committerMichael Spahn <m.spahn@metaways.de>
Thu, 4 Oct 2012 13:54:56 +0000 (15:54 +0200)
Change-Id: I8fff0a39616e568c7546b2c851a433211f0b5e46
Reviewed-on: https://gerrit.tine20.org/tine20/971
Tested-by: jenkins user
Reviewed-by: Philipp Schüle <p.schuele@metaways.de>
tine20/Inventory/Controller.php
tine20/Inventory/Model/InventoryItem.php

index c2afccf..a8729e6 100644 (file)
@@ -77,7 +77,7 @@ class Inventory_Controller extends Tinebase_Controller_Event implements Tinebase
         $account = Tinebase_User::getInstance()->getUserById($_accountId);
         
         $newContainer = new Tinebase_Model_Container(array(
-            'name'              => sprintf($translation->_("%s's personal inventorys"), $account->accountFullName),
+            'name'              => sprintf($translation->_("%s's personal inventory"), $account->accountFullName),
             'type'              => Tinebase_Model_Container::TYPE_PERSONAL,
             'owner_id'          => $_accountId,
             'backend'           => 'Sql',
index cd5dc63..3d57960 100644 (file)
@@ -6,7 +6,7 @@
  * @subpackage  Model
  * @license     http://www.gnu.org/licenses/agpl.html AGPL Version 3
  * @author      Stefanie Stamer <s.stamer@metaways.de>
- * @copyright   Copyright (c) 2007-2011 Metaways Infosystems GmbH (http://www.metaways.de)
+ * @copyright   Copyright (c) 2007-2012 Metaways Infosystems GmbH (http://www.metaways.de)
  * 
  */
 
@@ -51,8 +51,10 @@ class Inventory_Model_InventoryItem extends Tinebase_Record_Abstract
         'containerName'     => 'inventory record list', // _('inventory record list')
         'containersName'    => 'inventory record lists', // _('inventory record lists')
 
+
         // relations (linked Inventory_Model_InventoryItem records) and other metadata
 
+
         'hasRelations'      => true,
         'hasCustomFields'   => true,
         'hasNotes'          => true,
@@ -160,12 +162,12 @@ class Inventory_Model_InventoryItem extends Tinebase_Record_Abstract
      */
     public function __construct($_data = NULL, $_bypassFilters = false, $_convertDates = true)
     {
-    
-        foreach (array("total_number", "active_number") AS $val)
+        foreach (array("total_number", "active_number", "add_time") as $val)
         {
             $this->_filters[$val] = new Zend_Filter_Empty(NULL);
         }
-    
+        
+        
         return parent::__construct($_data, $_bypassFilters, $_convertDates);
     }